devlink: Add non-routable packet trap
Add packet trap that can report packets that reached the router, but are non-routable. For example, IGMP queries can be flooded by the device in layer 2 and reach the router. Such packets should not be routed and instead dropped. Signed-off-by: Amit Cohen <amitc@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
740e87bc3d
commit
95f0ead8f0
@@ -7706,6 +7706,7 @@ static const struct devlink_trap devlink_trap_generic[] = {
|
||||
DEVLINK_TRAP(REJECT_ROUTE, EXCEPTION),
|
||||
DEVLINK_TRAP(IPV4_LPM_UNICAST_MISS, EXCEPTION),
|
||||
DEVLINK_TRAP(IPV6_LPM_UNICAST_MISS, EXCEPTION),
|
||||
DEVLINK_TRAP(NON_ROUTABLE, DROP),
|
||||
};
|
||||
|
||||
#define DEVLINK_TRAP_GROUP(_id) \
|
||||
|
||||
Reference in New Issue
Block a user