#
68a84a12 |
| 12-Mar-2023 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: Change lan966x_police_del return type
As the function always returns 0 change the return type to be void instead of int. In this way also remove a wrong message in case of error which
net: lan966x: Change lan966x_police_del return type
As the function always returns 0 change the return type to be void instead of int. In this way also remove a wrong message in case of error which would never happen.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk> Reviewed-by: Simon Horman <simon.horman@corigine.com> Link: https://lore.kernel.org/r/20230312195155.1492881-1-horatiu.vultur@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
81563d85 |
| 28-Feb-2023 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
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. Th
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>
show more ...
|
#
5390334b |
| 30-Sep-2022 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
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 t
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>
show more ...
|