devlink: Add 'control' trap type
This type is used for traps that trap control packets such as ARP request and IGMP query to the CPU. Do not report such packets to the kernel's drop monitor as they were not dropped by the device no encountered an exception during forwarding. 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
9eefeabed6
commit
30a4e9a29a
@@ -253,10 +253,16 @@ enum devlink_trap_action {
|
||||
* control plane for resolution. Trapped packets
|
||||
* are processed by devlink and injected to
|
||||
* the kernel's Rx path.
|
||||
* @DEVLINK_TRAP_TYPE_CONTROL: Packet was trapped because it is required for
|
||||
* the correct functioning of the control plane.
|
||||
* For example, an ARP request packet. Trapped
|
||||
* packets are injected to the kernel's Rx path,
|
||||
* but not reported to drop monitor.
|
||||
*/
|
||||
enum devlink_trap_type {
|
||||
DEVLINK_TRAP_TYPE_DROP,
|
||||
DEVLINK_TRAP_TYPE_EXCEPTION,
|
||||
DEVLINK_TRAP_TYPE_CONTROL,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
Reference in New Issue
Block a user