]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5e: Re-order fields of struct mlx5e_xdpsq
authorTariq Toukan <tariqt@mellanox.com>
Tue, 22 May 2018 13:43:54 +0000 (16:43 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Jul 2018 22:23:56 +0000 (15:23 -0700)
commitdac0d15fff6f825e93aafa6ba8bf24fd77ecb2ae
tree0ef308649df11eb9610d54b4bccd73dd13b982a3
parent890388ad6f6b3740265173fa5296ece5d945e977
net/mlx5e: Re-order fields of struct mlx5e_xdpsq

In the downstream patch that adds support to XDP_REDIRECT-out,
the XDP xmit frame function doesn't share the same run context as
the NAPI that polls the XDP-SQ completion queue.

Hence, need to re-order the XDP-SQ fields to avoid cacheline
false-sharing.

Take redirect_flush and doorbell out of DB, into separated
cachelines.

Add a cacheline breaker within the stats struct.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h