devlink: Create dedicated trap group for layer 3 exceptions
Packets that hit exceptions during layer 3 forwarding must be trapped to the CPU for the control plane to function properly. Create a dedicated group for them, so that user space could choose to assign a different policer for them. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
af0a2482fa
commit
678eb199cc
@@ -657,6 +657,7 @@ enum devlink_trap_generic_id {
|
||||
enum devlink_trap_group_generic_id {
|
||||
DEVLINK_TRAP_GROUP_GENERIC_ID_L2_DROPS,
|
||||
DEVLINK_TRAP_GROUP_GENERIC_ID_L3_DROPS,
|
||||
DEVLINK_TRAP_GROUP_GENERIC_ID_L3_EXCEPTIONS,
|
||||
DEVLINK_TRAP_GROUP_GENERIC_ID_BUFFER_DROPS,
|
||||
DEVLINK_TRAP_GROUP_GENERIC_ID_TUNNEL_DROPS,
|
||||
DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_DROPS,
|
||||
@@ -730,6 +731,8 @@ enum devlink_trap_group_generic_id {
|
||||
"l2_drops"
|
||||
#define DEVLINK_TRAP_GROUP_GENERIC_NAME_L3_DROPS \
|
||||
"l3_drops"
|
||||
#define DEVLINK_TRAP_GROUP_GENERIC_NAME_L3_EXCEPTIONS \
|
||||
"l3_exceptions"
|
||||
#define DEVLINK_TRAP_GROUP_GENERIC_NAME_BUFFER_DROPS \
|
||||
"buffer_drops"
|
||||
#define DEVLINK_TRAP_GROUP_GENERIC_NAME_TUNNEL_DROPS \
|
||||
|
||||
Reference in New Issue
Block a user