]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: SD, Implement steering for primary and secondaries
authorTariq Toukan <tariqt@nvidia.com>
Tue, 12 Dec 2023 12:02:45 +0000 (14:02 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 21 Dec 2023 00:54:25 +0000 (16:54 -0800)
commit605fcce33b2d1beb0139b6e5913fa0b2062116b2
treebdf5e89e6671d5b63a8b4a87a8f490012b57223e
parenta45af9a96740873db9a4b5bb493ce2ad81ccb4d5
net/mlx5: SD, Implement steering for primary and secondaries

Implement the needed SD steering adjustments for the primary and
secondaries.

While the SD multiple devices are used to avoid cross-numa memory, when
it comes to chip level all traffic goes only through the primary device.
The secondaries are forced to silent mode, to guarantee they are not
involved in any unexpected ingress/egress traffic.

In RX, secondary devices will not have steering objects. Traffic will be
steered from the primary device to the RQs of a secondary device using
advanced cross-vhca RX steering capabilities.

In TX, the primary creates a new TX flow table, which is aliased by the
secondaries.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/sd.c