OSDN Git Service

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)
commit3b063ae57bdfec5e574ace440e6c3f34c4115a92
treedee48d3e5b30c2df1b8781e78c32f1ecf044e80e
parentd3e985c917388a719dd17271016219401b994522
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