Commit c3cae4916e57d2f0364d5e7769218547fb1b7c60
Committed by
David S. Miller
1 parent
27942c7000
devlink: Add overlay source MAC is multicast trap
Add packet trap that can report NVE packets that the device decided to drop because their overlay source MAC is multicast. Signed-off-by: Amit Cohen <amitc@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 3 changed files with 8 additions and 0 deletions Side-by-side Diff
Documentation/networking/devlink/devlink-trap.rst
... | ... | @@ -234,6 +234,10 @@ |
234 | 234 | - Traps NVE and IPinIP packets that the device decided to drop because of |
235 | 235 | failure during decapsulation (e.g., packet being too short, reserved |
236 | 236 | bits set in VXLAN header) |
237 | + * - ``overlay_smac_is_mc`` | |
238 | + - ``drop`` | |
239 | + - Traps NVE packets that the device decided to drop because their overlay | |
240 | + source MAC is multicast | |
237 | 241 | |
238 | 242 | Driver-specific Packet Traps |
239 | 243 | ============================ |
include/net/devlink.h
... | ... | @@ -593,6 +593,7 @@ |
593 | 593 | DEVLINK_TRAP_GENERIC_ID_IPV6_LPM_UNICAST_MISS, |
594 | 594 | DEVLINK_TRAP_GENERIC_ID_NON_ROUTABLE, |
595 | 595 | DEVLINK_TRAP_GENERIC_ID_DECAP_ERROR, |
596 | + DEVLINK_TRAP_GENERIC_ID_OVERLAY_SMAC_MC, | |
596 | 597 | |
597 | 598 | /* Add new generic trap IDs above */ |
598 | 599 | __DEVLINK_TRAP_GENERIC_ID_MAX, |
... | ... | @@ -666,6 +667,8 @@ |
666 | 667 | "non_routable_packet" |
667 | 668 | #define DEVLINK_TRAP_GENERIC_NAME_DECAP_ERROR \ |
668 | 669 | "decap_error" |
670 | +#define DEVLINK_TRAP_GENERIC_NAME_OVERLAY_SMAC_MC \ | |
671 | + "overlay_smac_is_mc" | |
669 | 672 | |
670 | 673 | #define DEVLINK_TRAP_GROUP_GENERIC_NAME_L2_DROPS \ |
671 | 674 | "l2_drops" |
net/core/devlink.c