Skip to content

net: dsa: Multi-CPU ground work (v4)

Florian Fainelli netdev 4 versions – Applied

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

  1. v4 Latest4 patches 1 replyApplied
  2. v34 patches 3 repliesSuperseded
  3. v25 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches10 repliesSuperseded

Changes in v4 from the cover letter

- fixed build warning with NETPOLL enabled

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4net: dsa: Remove master_netdev and use dst->cpu_dp->netdevdrivers/net/dsa/bcm_sf2.c drivers/net/dsa/mt7530.c include/net/dsa.h +5 more+40 -480 replies
2/4net: dsa: Relocate master ethtool operationsinclude/net/dsa.h net/dsa/dsa.c net/dsa/slave.c+19 -300 replies
3/4net: dsa: Associate slave network device with CPU portinclude/net/dsa.h net/dsa/dsa2.c net/dsa/dsa_priv.h +2 more+17 -20 replies
4/4net: dsa: Introduce dsa_get_cpu_port()net/dsa/dsa_priv.h net/dsa/slave.c net/dsa/tag_brcm.c +3 more+29 -250 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchVivien Didelot
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v4 thread

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