linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/11] net: dsa: parsing stage
@ 2017-11-03 23:05 Vivien Didelot
  2017-11-03 23:05 ` [PATCH net-next 01/11] net: dsa: make switch index unsigned Vivien Didelot
                   ` (11 more replies)
  0 siblings, 12 replies; 18+ messages in thread
From: Vivien Didelot @ 2017-11-03 23:05 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, kernel, David S. Miller, Florian Fainelli,
	Andrew Lunn, Vivien Didelot

When registering 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 first parsing stage. It fixes the type of
the switch and tree indexes to unsigned int, simplifies the tree
reference counting and the switch and CPU ports parsing.

Vivien Didelot (11):
  net: dsa: make switch index unsigned
  net: dsa: make tree index unsigned
  net: dsa: simplify tree reference counting
  net: dsa: get and put tree reference counting
  net: dsa: provide a find or new tree helper
  net: dsa: rework switch addition and removal
  net: dsa: get tree before parsing ports
  net: dsa: rework switch parsing
  net: dsa: only check presence of link property
  net: dsa: add one port parsing function per type
  net: dsa: resolve tagging protocol at parse time

 include/net/dsa.h |   4 +-
 net/dsa/dsa2.c    | 323 ++++++++++++++++++++++++++++++------------------------
 net/dsa/slave.c   |   2 +-
 3 files changed, 184 insertions(+), 145 deletions(-)

-- 
2.14.3

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

end of thread, other threads:[~2017-11-05 13:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 23:05 [PATCH net-next 00/11] net: dsa: parsing stage Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 01/11] net: dsa: make switch index unsigned Vivien Didelot
2017-11-03 23:09   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 02/11] net: dsa: make tree " Vivien Didelot
2017-11-03 23:15   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 03/11] net: dsa: simplify tree reference counting Vivien Didelot
2017-11-03 23:16   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 04/11] net: dsa: get and put " Vivien Didelot
2017-11-03 23:16   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 05/11] net: dsa: provide a find or new tree helper Vivien Didelot
2017-11-03 23:18   ` Florian Fainelli
2017-11-03 23:05 ` [PATCH net-next 06/11] net: dsa: rework switch addition and removal Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 07/11] net: dsa: get tree before parsing ports Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 08/11] net: dsa: rework switch parsing Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 09/11] net: dsa: only check presence of link property Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 10/11] net: dsa: add one port parsing function per type Vivien Didelot
2017-11-03 23:05 ` [PATCH net-next 11/11] net: dsa: resolve tagging protocol at parse time Vivien Didelot
2017-11-05 13:32 ` [PATCH net-next 00/11] net: dsa: parsing stage David Miller

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).