net/mlx5: Register to devlink DMAC filter trap
authorAya Levin <ayal@nvidia.com>
Tue, 26 Jan 2021 23:24:09 +0000 (15:24 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jan 2021 03:53:50 +0000 (19:53 -0800)
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 <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c

index 8c2f886ac78e83fff9c2f955f47130c1e9873afa..f081eff9be25d2766dc28d5b9936af5fa934fedb 100644 (file)
@@ -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[] = {