Skip to content

net: dsa: mv88e6xxx: ethtool n-tuple follow ups

Jakub Kicinski netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: dsa: mv88e6xxx: check the port when reading back a policy ruledrivers/net/dsa/mv88e6xxx/chip.c+1 -10 repliesApplied
2/2net: dsa: mv88e6xxx: check the port when deleting a policy ruledrivers/net/dsa/mv88e6xxx/chip.c+3 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: dsa: mv88e6xxx: ethtool n-tuple follow ups

Here are two small tweaks to the mv88e6xxx n-tuple filter handling suggested by Sashiko when reviewing commit b1fffc273112 ("net: dsa:
mv88e6xxx: bound the policy rule dump by the caller's buffer size")

At the high level the problem is that the driver has shared rule table but for some ops it doesn't check whether the rule operated on belongs to the port on which the ethtool request was sent.

I initially thought that this could be intentional, but on closer look I don't think it really works..

Sending for net-next, because this is AI-induced, build-tested-only slop-code. The outcome is unlikely and results in mis-configuration, no crashes.

Jakub Kicinski (2):
net: dsa: mv88e6xxx: check the port when reading back a policy rule
net: dsa: mv88e6xxx: check the port when deleting a policy rule

 drivers/net/dsa/mv88e6xxx/chip.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.55.0