OSDN Git Service

Merge branch 'net-dsa-Multi-CPU-ground-work'
authorDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2017 20:35:04 +0000 (16:35 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2017 20:35:04 +0000 (16:35 -0400)
commitb217566a525ff24334d17635a865f44b68c2c583
tree1f4d13a47187b7662ea5369ffe163deee2c79550
parent38b6ec5008bb7019a705b576df345509f39d3f4b
parent3cc9f2573cdcbc6991aa2d1c8e04a4b9190487f8
Merge branch 'net-dsa-Multi-CPU-ground-work'

Florian Fainelli says:

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

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
====================

Signed-off-by: David S. Miller <davem@davemloft.net>