summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2023-02-28 21:47:42 +0100
committerDavid S. Miller <davem@davemloft.net>2023-03-01 12:44:17 +0000
commit81563d8548b0478075c720666be348d4199b8591 (patch)
treec6a8e5aa1f41ec9e080a0d88aab6200b9b6e1d27 /net
parentdfd2f0eb2347dbdf391fd5b8255fefc58a745472 (diff)
net: lan966x: Fix port police support using tc-matchall
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: 5390334b59a3 ("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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions