OSDN Git Service

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)
commitfeb2ff9d74f76a174e284255b7e537b6c090c13c
tree7a9907384e6f097daf7c6f84e2c469945bdadc89
parent4fb2f516186ea25dea326f97880431e14a5b9e9d
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