All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 00/11] net: dsa: setup stage
@ 2017-11-06 21:11 Vivien Didelot
  2017-11-06 21:11 ` [PATCH net-next 01/11] net: dsa: constify cpu_dp member of dsa_port Vivien Didelot
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Vivien Didelot @ 2017-11-06 21:11 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, kernel, David S. Miller, Florian Fainelli,
	Andrew Lunn, Vivien Didelot

When probing a DSA switch, there is basically two stages.

The first stage is the parsing of the switch device, from either device
tree or platform data. It fetches the DSA tree to which it belongs, and
validates its ports. The switch device is then added to the tree, and
the second stage is called if this was the last switch of the tree.

The second stage is the setup of the tree, which validates that the tree
is complete, sets up the routing tables, the default CPU port for user
ports, sets up the switch drivers and finally the master interfaces,
which makes the whole switch fabric functional.

This patch series covers the second setup stage. The setup and teardown
of a switch tree have been separated into logical steps, and the probing
of a switch now simply parses and adds a switch to a tree.

Vivien Didelot (11):
  net: dsa: constify cpu_dp member of dsa_port
  net: dsa: setup and teardown default CPU port
  net: dsa: setup and teardown master device
  net: dsa: setup and teardown tree
  net: dsa: setup and teardown switches
  net: dsa: setup and teardown ports
  net: dsa: add find port by node helper
  net: dsa: use of_for_each_phandle
  net: dsa: setup routing table
  net: dsa: setup a tree when adding a switch to it
  net: dsa: rename probe and remove switch functions

 include/net/dsa.h  |   4 +-
 net/dsa/dsa2.c     | 615 +++++++++++++++++++++++------------------------------
 net/dsa/dsa_priv.h |   4 +-
 net/dsa/legacy.c   |  20 +-
 net/dsa/master.c   |  30 ++-
 net/dsa/slave.c    |   2 +-
 6 files changed, 296 insertions(+), 379 deletions(-)

-- 
2.14.3

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

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

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06 21:11 [PATCH net-next 00/11] net: dsa: setup stage Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 01/11] net: dsa: constify cpu_dp member of dsa_port Vivien Didelot
2017-11-07  1:47   ` Florian Fainelli
2017-11-06 21:11 ` [PATCH net-next 02/11] net: dsa: setup and teardown default CPU port Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 03/11] net: dsa: setup and teardown master device Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 04/11] net: dsa: setup and teardown tree Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 05/11] net: dsa: setup and teardown switches Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 06/11] net: dsa: setup and teardown ports Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 07/11] net: dsa: add find port by node helper Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 08/11] net: dsa: use of_for_each_phandle Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 09/11] net: dsa: setup routing table Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 10/11] net: dsa: setup a tree when adding a switch to it Vivien Didelot
2017-11-06 21:11 ` [PATCH net-next 11/11] net: dsa: rename probe and remove switch functions Vivien Didelot
2017-11-09  0:29 ` [PATCH net-next 00/11] net: dsa: setup stage David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.