linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com,
	"David S. Miller" <davem@davemloft.net>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Subject: [PATCH net-next 00/11] net: dsa: parsing stage
Date: Fri,  3 Nov 2017 19:05:19 -0400	[thread overview]
Message-ID: <20171103230530.996-1-vivien.didelot@savoirfairelinux.com> (raw)

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

             reply	other threads:[~2017-11-03 23:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-03 23:05 Vivien Didelot [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171103230530.996-1-vivien.didelot@savoirfairelinux.com \
    --to=vivien.didelot@savoirfairelinux.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=kernel@savoirfairelinux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).