devlink: Add tunnel generic packet traps
Add packet traps that can report packets that were dropped during tunnel decapsulation. 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>
This commit is contained in:
committed by
David S. Miller
parent
f528dfc460
commit
13c056ec7d
@@ -7707,6 +7707,7 @@ static const struct devlink_trap devlink_trap_generic[] = {
|
||||
DEVLINK_TRAP(IPV4_LPM_UNICAST_MISS, EXCEPTION),
|
||||
DEVLINK_TRAP(IPV6_LPM_UNICAST_MISS, EXCEPTION),
|
||||
DEVLINK_TRAP(NON_ROUTABLE, DROP),
|
||||
DEVLINK_TRAP(DECAP_ERROR, EXCEPTION),
|
||||
};
|
||||
|
||||
#define DEVLINK_TRAP_GROUP(_id) \
|
||||
@@ -7719,6 +7720,7 @@ static const struct devlink_trap_group devlink_trap_group_generic[] = {
|
||||
DEVLINK_TRAP_GROUP(L2_DROPS),
|
||||
DEVLINK_TRAP_GROUP(L3_DROPS),
|
||||
DEVLINK_TRAP_GROUP(BUFFER_DROPS),
|
||||
DEVLINK_TRAP_GROUP(TUNNEL_DROPS),
|
||||
};
|
||||
|
||||
static int devlink_trap_generic_verify(const struct devlink_trap *trap)
|
||||
|
||||
Reference in New Issue
Block a user