]> 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)
commit769ab834a74c948e06f0ed49ac86f7f83e9b3fc5
tree139741643875150cd8cc289b92790b63dcd73f3c
parentc6bf98b191086556ab54b021636acf94d9d4bd62
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