]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan966x: Add port mirroring support using tc-matchall
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 30 Sep 2022 08:35:40 +0000 (10:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2022 11:46:46 +0000 (12:46 +0100)
commit246bc16d9befc3e9916f985f30377e8cf190b717
treec3d2b996b512d14be827bbaf42360a42a035d822
parent15b8f3a8fe5496e228711db0002abae0936af356
net: lan966x: Add port mirroring support using tc-matchall

Add support for port mirroring. It is possible to mirror only one port
at a time and it is possible to have both ingress and egress mirroring.
Frames injected by the CPU don't get egress mirrored because they are
bypassing the analyzer module.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/Makefile
drivers/net/ethernet/microchip/lan966x/lan966x_main.h
drivers/net/ethernet/microchip/lan966x/lan966x_mirror.c [new file with mode: 0644]
drivers/net/ethernet/microchip/lan966x/lan966x_regs.h
drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c