Skip to content

net: dsa: use switchdev attr and obj handlers

Vivien Didelot lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: dsa: do not check orig_dev in vlan delnet/dsa/port.c+0 -90 replies
2/4net: dsa: make cpu_dp non constinclude/net/dsa.h+1 -10 replies
3/4net: dsa: make dsa_slave_dev_check use constnet/dsa/slave.c+2 -20 replies
4/4net: dsa: use switchdev handle helpersnet/dsa/slave.c+32 -440 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchFlorian Fainelli
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] net: dsa: use switchdev attr and obj handlers

This series reduces boilerplate in the handling of switchdev attribute and object operations by using the switchdev_handle_* helpers, which check the targeted devices and recurse into their lower devices.

This also brings back the ability to inspect operations targeting the bridge device itself (where .orig_dev and .dev were originally the bridge device), even though that is of no use yet and skipped by this series.

Changes in v2: Only VLAN and (non-host) MDB objects not directly targeting the slave device are unsupported at the moment, so only skip these cases.

Vivien Didelot (4):
net: dsa: do not check orig_dev in vlan del
net: dsa: make cpu_dp non const
net: dsa: make dsa_slave_dev_check use const
net: dsa: use switchdev handle helpers

 include/net/dsa.h |  2 +-
 net/dsa/port.c    |  9 ------
 net/dsa/slave.c   | 80 ++++++++++++++++++++---------------------------
 3 files changed, 35 insertions(+), 56 deletions(-)
Signature · 1 line
2.21.0