net: dsa: use switchdev attr and obj handlers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 1 replyIn review
- v14 patches 5 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | net: dsa: do not check orig_dev in vlan delnet/ | +0 | 0 replies | |
| 2/4 | net: dsa: make cpu_dp non constinclude/ | +1 | 0 replies | |
| 3/4 | net: dsa: make dsa_slave_dev_check use constnet/ | +2 | 0 replies | |
| 4/4 | net: dsa: use switchdev handle helpersnet/ | +32 | 0 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Florian Fainelli |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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