net: dsa: Multi-CPU ground work (v4)
Status from this message: Applied, thanks for the quick respin.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 1 replyApplied
- v34 patches 3 repliesSuperseded
- v25 patches 11 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 5 patches | 10 replies | Superseded |
Changes in v4 from the cover letter
- fixed build warning with NETPOLL enabled
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | net: dsa: Remove master_netdev and use dst->cpu_dp->netdevdrivers/ drivers/ include/ +5 more | +40 | 0 replies | |
| 2/4 | net: dsa: Relocate master ethtool operationsinclude/ net/ net/ | +19 | 0 replies | |
| 3/4 | net: dsa: Associate slave network device with CPU portinclude/ net/ net/ +2 more | +17 | 0 replies | |
| 4/4 | net: dsa: Introduce dsa_get_cpu_port()net/ net/ net/ +3 more | +29 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Vivien Didelot |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v4 0/4] net: dsa: Multi-CPU ground work (v4)
Hi all,
This patch series prepares the ground for adding mutliple CPU port support to DSA, and starts by removing redundant pieces of information such as master_netdev which is cpu_dp->ethernet. Finally drivers are moved away from directly accessing ds->dst->cpu_dp and use appropriate helper functions.
Note that if you have Device Tree blobs/platform configurations that are currently listing multiple CPU ports, the proposed behavior in dsa_ds_get_cpu_dp() will be to return the last bit set in ds->cpu_port_mask.
Future plans include:
- making dst->cpu_dp a flexible data structure (array, list, you name it)
- having the ability for drivers to return a default/preferred CPU port (if necessary)
Changes in v4:
- fixed build warning with NETPOLL enabled
Changes in v3:
- removed the last patch since it causes problems with bcm_sf2/b53 in a dual-CPU case (root cause known, proper fix underway)
- removed dsa_ds_get_cpu_dp()
Changes in v2:
- added Reviewed-by tags
- assign port->cpu_dp earlier before ops->setup() has run
Florian Fainelli (5):
net: dsa: Remove master_netdev and use dst->cpu_dp->netdev
net: dsa: Relocate master ethtool operations
net: dsa: Associate slave network device with CPU port
net: dsa: Introduce dsa_dst_get_cpu_dp()
net: dsa: Stop accessing ds->dst->cpu_dp in drivers
drivers/net/dsa/b53/b53_common.c | 4 +-- drivers/net/dsa/bcm_sf2.c | 10 +++++--- drivers/net/dsa/mt7530.c | 6 +++-- drivers/net/dsa/mv88e6060.c | 2 +- drivers/net/dsa/qca8k.c | 2 +- include/net/dsa.h | 29 +++++++++------------- net/dsa/dsa.c | 19 ++++---------- net/dsa/dsa2.c | 27 ++++++++++++-------- net/dsa/dsa_priv.h | 10 ++++++++ net/dsa/legacy.c | 23 ++++++++++------- net/dsa/slave.c | 53 ++++++++++++++++++++-------------------- net/dsa/tag_brcm.c | 5 ++-- net/dsa/tag_ksz.c | 5 ++-- net/dsa/tag_qca.c | 3 ++- net/dsa/tag_trailer.c | 5 ++-- 15 files changed, 107 insertions(+), 96 deletions(-)
Signature · 1 line
2.9.3