summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorAya Levin <ayal@nvidia.com>2021-01-27 02:24:06 +0300
committerJakub Kicinski <kuba@kernel.org>2021-01-28 06:53:40 +0300
commite78ab164591ffd55d2771401ed0d9b083dad55fa (patch)
treeecd5d35a04b8b513ece007e402957b0cd3c8cd1f /net/core
parent63368a7416df144b713ef1a887dba11796907e05 (diff)
downloadlinux-e78ab164591ffd55d2771401ed0d9b083dad55fa.tar.xz
devlink: Add DMAC filter generic packet trap
Add packet trap that can report packets that were dropped due to destination MAC filtering. Signed-off-by: Aya Levin <ayal@nvidia.com> Reviewed-by: Ido Schimmel <idosch@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>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/devlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index 72ea79879762..f6e6445b9801 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -9512,6 +9512,7 @@ static const struct devlink_trap devlink_trap_generic[] = {
DEVLINK_TRAP(GTP_PARSING, DROP),
DEVLINK_TRAP(ESP_PARSING, DROP),
DEVLINK_TRAP(BLACKHOLE_NEXTHOP, DROP),
+ DEVLINK_TRAP(DMAC_FILTER, DROP),
};
#define DEVLINK_TRAP_GROUP(_id) \