]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Lag, offload active-backup drops to hardware
authorMark Bloch <mbloch@nvidia.com>
Mon, 29 Nov 2021 09:25:03 +0000 (09:25 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Feb 2022 23:21:58 +0000 (15:21 -0800)
commitacde68918f8ff4851e224f54b213a8ee3d60671b
tree89382562c9d263a380b244a2f7b6103e46b3c2ff
parent33b7b17e951ec4bf09b625a18e99d4208736d84b
net/mlx5: Lag, offload active-backup drops to hardware

In active-backup mode the backup interface's packets are dropped by the
bond device. In switchdev where TC rules are offloaded to the FDB
this can lead to packets being hit in the FDB where without offload
they would have been dropped before reaching TC rules in the kernel.

Create a drop rule to make sure packets on inactive ports are dropped
before reaching the FDB.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h