]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85efd9e66d88f70bc4509b654f8a445c544ef75d
tree139741643875150cd8cc289b92790b63dcd73f3c
parent0eca99357a79a8501067ba8570762d54afb326b6
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