]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Fix querying eswitch manager vport for ECPF
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Sun, 12 Dec 2021 14:19:58 +0000 (16:19 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 23 Dec 2021 04:38:46 +0000 (20:38 -0800)
commit13819aabe901196b032a15f292eaa3ea8c3b02a4
treec8dd683768d25f7bc5df9dee63fe97ab658c12d3
parent60277b4385521fdc26ef08423eafa9fd9addca4f
net/mlx5: DR, Fix querying eswitch manager vport for ECPF

On BlueField the E-Switch manager is the ECPF (vport 0xFFFE), but when
querying capabilities of ECPF eswitch manager, need to query vport 0
with other_vport = 0.

Fixes: ec52ac7a066e ("net/mlx5: DR, Handle eswitch manager and uplink vports separately")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c