]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add layer 3 generic packet exception traps
authorAmit Cohen <amitc@mellanox.com>
Thu, 7 Nov 2019 16:42:14 +0000 (18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 03:51:40 +0000 (19:51 -0800)
commit053375f6b1e7d52d37fae2c77a5bbbf38af51165
treedee48d3e5b30c2df1b8781e78c32f1ecf044e80e
parent4dd52544727dff29ee98b0ae94751271d7963bb9
devlink: Add layer 3 generic packet exception traps

Add layer 3 generic packet exception traps that can report trapped
packets and documentation of the traps.

Unlike drop traps, these exception traps also need to inject the packet
to the kernel's receive path. For example, a packet that was trapped due
to unreachable neighbour need to be injected into the kernel so that it
will trigger an ARP request or a neighbour solicitation message.

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>
Documentation/networking/devlink-trap.rst
include/net/devlink.h
net/core/devlink.c