]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
devlink: Add non-routable packet trap
authorAmit Cohen <amitc@mellanox.com>
Sun, 19 Jan 2020 13:00:48 +0000 (15:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jan 2020 15:23:52 +0000 (16:23 +0100)
commit95f0ead8f04bec18e474594ef585f3734bd85b4c
treec05e3f18456473a7a7234ceeb16448eadbebfb0a
parent740e87bc3db8fe299e17877b7055e9ae3c33e4e6
devlink: Add non-routable packet trap

Add packet trap that can report packets that reached the router, but are
non-routable. For example, IGMP queries can be flooded by the device in
layer 2 and reach the router. Such packets should not be routed and
instead dropped.

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/devlink/devlink-trap.rst
include/net/devlink.h
net/core/devlink.c