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)
commitb69e95397c3ca8c596da006fa16076b54c54d1d4
treec3d2b996b512d14be827bbaf42360a42a035d822
parent5390334b59a3a011f1e9eff2d3023b0e407dd61b
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