]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, handle devcom events only for ports on the same device
authorRoi Dayan <roid@nvidia.com>
Wed, 2 Jun 2021 11:17:07 +0000 (14:17 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 27 Jul 2021 23:10:03 +0000 (16:10 -0700)
commit40c70c93f58094be1d866876619cfc402c00c3ac
tree73477abae6c26c92c354a36d12cc1cb9f73c5364
parentf8bca8ba02184995b8b5f494168a663252453575
net/mlx5: E-Switch, handle devcom events only for ports on the same device

This is the same check as LAG mode checks if to enable lag.
This will fix adding peer miss rules if lag is not supported
and even an incorrect rules in socket direct mode.

Also fix the incorrect comment on mlx5_get_next_phys_dev() as flow #1
doesn't exists.

Fixes: 2bc74603d371 ("net/mlx5e: E-Switch, Add peer miss rules")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c