net: lan966x: Add port police support using tc-matchall
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 30 Sep 2022 08:35:39 +0000 (10:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2022 11:46:46 +0000 (12:46 +0100)
commit5390334b59a3a011f1e9eff2d3023b0e407dd61b
treed50df5612f4328c0d7566f73e0dbae6eeb553352
parent95698ff6177b5f1f13f251da60e7348413046ae4
net: lan966x: Add port police support using tc-matchall

Add support for port police. It is possible to police only on the
ingress side. To be able to add police support also it was required to
add tc-matchall classifier offload support.

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_police.c [new file with mode: 0644]
drivers/net/ethernet/microchip/lan966x/lan966x_regs.h
drivers/net/ethernet/microchip/lan966x/lan966x_tc.c
drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c [new file with mode: 0644]