]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: XDP, Change the XDP SQ redirect indication
authorTariq Toukan <tariqt@mellanox.com>
Wed, 21 Nov 2018 12:04:45 +0000 (14:04 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 21 Dec 2018 06:54:18 +0000 (22:54 -0800)
commit5545c38801a74c9b476ffe618a3e0876ba2ba36e
tree7a9907384e6f097daf7c6f84e2c469945bdadc89
parent362731822be21031af1d2ac8c728bdb81e2c5163
net/mlx5e: XDP, Change the XDP SQ redirect indication

Do not maintain an SQ state bit to indicate whether an
XDP SQ serves redirect operations.

Instead, rely on the fact that such an XDP SQ doesn't reside
in an RQ instance, while the others do.
This info is not known to the XDP SQ functions themselves,
and they rely on their callers to distinguish between the cases.

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/xdp.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c