]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add 'mirror' trap action
authorIdo Schimmel <idosch@mellanox.com>
Fri, 29 May 2020 18:36:39 +0000 (21:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 18:49:23 +0000 (11:49 -0700)
commit9f792afb6ae2ece0073cd3b1eda1e16fec776997
tree2e4fff25c312dd222498fe460c7561f7d223d355
parent554af3c7f4916bc25e0247ee9306351d7c0972c1
devlink: Add 'mirror' trap action

The action is used by control traps such as IGMP query. The packet is
flooded by the device, but also trapped to the CPU in order for the
software bridge to mark the receiving port as a multicast router port.
Such packets are marked with 'skb->offload_fwd_mark = 1' in order to
prevent the software bridge from flooding them again.

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