OSDN Git Service

devlink: Add 'control' trap type
authorIdo Schimmel <idosch@mellanox.com>
Fri, 29 May 2020 18:36:40 +0000 (21:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 18:49:23 +0000 (11:49 -0700)
commit30a4e9a29ab9aadfe6c5386ae4aa396b1d2556c2
tree87f5fd2b34514fd7ef932ab419bcebe4320329fd
parent9eefeabed6f831018c15bd7e17d34967ee34d9dd
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>
Documentation/networking/devlink/devlink-trap.rst
include/uapi/linux/devlink.h
net/core/devlink.c