net/mlx4_en: Avoid false sharing in mlx4_en_en_process_tx_cq()
authorEric Dumazet <edumazet@google.com>
Sun, 5 Oct 2014 09:35:15 +0000 (12:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 05:04:15 +0000 (01:04 -0400)
commitfb1843ee72c7b2ed784bf88ad79c6ccc2f652499
tree139741643875150cd8cc289b92790b63dcd73f3c
parent29d40c903247596c954446639116467eb6689bb7
net/mlx4_en: Avoid false sharing in mlx4_en_en_process_tx_cq()

mlx4_en_process_tx_cq() carefully fetches and writes ring->last_nr_txbb
and ring->cons only one time to avoid false sharing

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c