mirror-linux/drivers/net/ethernet/microchip
Horatiu Vultur 6fac771473 net: lan966x: Fix port police support using tc-matchall
[ Upstream commit 81563d8548 ]

When the police was removed from the port, then it was trying to
remove the police from the police id and not from the actual
police index.
The police id represents the id of the police and police index
represents the position in HW where the police is situated.
The port police id can be any number while the port police index
is a number based on the port chip port.
Fix this by deleting the police from HW that is situated at the
police index and not police id.

Fixes: 5390334b59 ("net: lan966x: Add port police support using tc-matchall")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-17 08:50:23 +01:00
..
lan966x net: lan966x: Fix port police support using tc-matchall 2023-03-17 08:50:23 +01:00
sparx5 net: microchip: sparx5: fix PTP init/deinit not checking all ports 2023-02-14 19:11:45 +01:00
Kconfig
Makefile
enc28j60.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
enc28j60_hw.h
encx24j600-regmap.c net: encx24j600: Fix invalid logic in reading of MISTAT register 2022-12-05 09:46:31 +00:00
encx24j600.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
encx24j600_hw.h
lan743x_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
lan743x_ethtool.h
lan743x_main.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
lan743x_main.h net: lan743x: Add support for Rx IP & TCP checksum offload 2022-09-09 08:20:58 +01:00
lan743x_ptp.c eth: lan743x: reject extts for non-pci11x1x devices 2022-10-03 12:39:39 +01:00
lan743x_ptp.h