]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Align tx path structures to cache lines
authorEric Dumazet <edumazet@google.com>
Sun, 5 Oct 2014 09:35:10 +0000 (12:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 05:04:15 +0000 (01:04 -0400)
commit7e3c75143bce79e0db29796e52b3f1c3b14bd360
treed5cc5f5e6fd9984c3ec59652de96fe9824157d22
parentbdd19dcf46f2176e5928486a8f46888996396a1a
net/mlx4_en: Align tx path structures to cache lines

Reorganize struct mlx4_en_tx_ring to have:
- One cache line containing last_nr_txbb & cons & wake_queue, used by tx
  completion.
- One cache line containing fields dirtied by mlx4_en_xmit()
- Following part is read mostly and shared by cpus.

Align struct mlx4_en_tx_info to a cache line

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/mlx4_en.h