From: Aya Levin <a...@nvidia.com>

Core driver is registered to the devlink traps service, which enables the
admin to redeem packets that were destined to be dropped due to a
particular reason. Register to DMAC filter, allow visibility of packets
that were filtered out by the MAC table.

Signed-off-by: Aya Levin <a...@nvidia.com>
Reviewed-by: Moshe Shemesh <mo...@nvidia.com>
Reviewed-by: Tariq Toukan <tar...@nvidia.com>
Signed-off-by: Tariq Toukan <tar...@nvidia.com>
Signed-off-by: Saeed Mahameed <sae...@nvidia.com>
---
 drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c 
b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
index 8c2f886ac78e..f081eff9be25 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
@@ -449,6 +449,7 @@ static void mlx5_devlink_set_params_init_values(struct 
devlink *devlink)
 
 static const struct devlink_trap mlx5_traps_arr[] = {
        MLX5_TRAP_DROP(INGRESS_VLAN_FILTER, L2_DROPS),
+       MLX5_TRAP_DROP(DMAC_FILTER, L2_DROPS),
 };
 
 static const struct devlink_trap_group mlx5_trap_groups_arr[] = {
-- 
2.29.2

Reply via email to