netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: dsa: Multi-CPU ground work
@ 2017-06-06 17:01 Florian Fainelli
  2017-06-06 17:01 ` [PATCH net-next 1/5] net: dsa: Remove master_netdev and use dst->cpu_dp->netdev Florian Fainelli
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Florian Fainelli @ 2017-06-06 17:01 UTC (permalink / raw)
  To: netdev; +Cc: andrew, vivien.didelot, john, davem, Florian Fainelli

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)

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      |  3 ++-
 drivers/net/dsa/qca8k.c          |  2 +-
 include/net/dsa.h                | 29 +++++++++------------
 net/dsa/dsa.c                    | 19 ++++----------
 net/dsa/dsa2.c                   | 18 ++++++--------
 net/dsa/dsa_priv.h               | 10 ++++++++
 net/dsa/legacy.c                 | 22 +++++++++-------
 net/dsa/slave.c                  | 54 +++++++++++++++++++++-------------------
 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, 98 insertions(+), 97 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-06-09  0:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-06 17:01 [PATCH net-next 0/5] net: dsa: Multi-CPU ground work Florian Fainelli
2017-06-06 17:01 ` [PATCH net-next 1/5] net: dsa: Remove master_netdev and use dst->cpu_dp->netdev Florian Fainelli
2017-06-06 17:24   ` Vivien Didelot
2017-06-06 18:09     ` Florian Fainelli
2017-06-09  0:01   ` kbuild test robot
2017-06-06 17:01 ` [PATCH net-next 2/5] net: dsa: Relocate master ethtool operations Florian Fainelli
2017-06-06 17:28   ` Vivien Didelot
2017-06-06 17:02 ` [PATCH net-next 3/5] net: dsa: Associate slave network device with CPU port Florian Fainelli
2017-06-06 17:37   ` Vivien Didelot
2017-06-06 17:02 ` [PATCH net-next 4/5] net: dsa: Introduce dsa_dst_get_cpu_dp() Florian Fainelli
2017-06-06 17:52   ` Vivien Didelot
2017-06-06 17:02 ` [PATCH net-next 5/5] net: dsa: Stop accessing ds->dst->cpu_dp in drivers Florian Fainelli
2017-06-06 18:09   ` Vivien Didelot
2017-06-06 18:12     ` Florian Fainelli
2017-06-06 18:33       ` Vivien Didelot
2017-06-06 18:25 ` [PATCH net-next 0/5] net: dsa: Multi-CPU ground work Vivien Didelot
2017-06-06 19:20   ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).