mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: vivien.didelot@savoirfairelinux.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	kernel@savoirfairelinux.com, f.fainelli@gmail.com,
	andrew@lunn.ch
Subject: Re: [PATCH net-next 0/9] net: dsa: define port types
Date: Sat, 28 Oct 2017 00:00:27 +0900 (KST)	[thread overview]
Message-ID: <20171028.000027.15576492722845843.davem@davemloft.net> (raw)
In-Reply-To: <20171026152259.3123-1-vivien.didelot@savoirfairelinux.com>

From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Date: Thu, 26 Oct 2017 11:22:50 -0400

> The DSA code currently has 3 bitmaps in the dsa_switch structure:
> cpu_port_mask, dsa_port_mask and enabled_port_mask.
> 
> They are used to store the type of each switch port. This dates back
> from when DSA didn't have a dsa_port structure to hold port-specific
> data.
> 
> The dsa_switch structure is mainly used to communicate with DSA drivers
> and must not contain such static data parsed from DTS or pdata, which
> belongs the DSA core structures, such as dsa_switch_tree and dsa_port.
> 
> Also the enabled_port_mask is misleading, often misinterpreted as the
> complement of disabled ports (thus including DSA and CPU ports), while
> in fact it only masks the user ports.
> 
> A port can be of 3 types when it is not unused: "cpu" (interfacing with
> a master device), "dsa" (interconnecting with another "dsa" port from
> another switch chip), or "user" (user-facing port.)
> 
> This patchset first fixes the usage of DSA port type helpers, then
> defines the DSA_PORT_TYPE_UNUSED, DSA_PORT_TYPE_CPU, DSA_PORT_TYPE_DSA,
> and DSA_PORT_TYPE_USER port types, and finally removes the misleading
> port bitmaps.

Series applied, thanks Vivien.

  parent reply	other threads:[~2017-10-27 15:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26 15:22 Vivien Didelot
2017-10-26 15:22 ` [PATCH net-next 1/9] net: dsa: add dsa_is_unused_port helper Vivien Didelot
2017-10-26 23:07   ` Florian Fainelli
2017-10-26 15:22 ` [PATCH net-next 2/9] net: dsa: mv88e6xxx: skip unused ports Vivien Didelot
2017-10-26 23:08   ` Florian Fainelli
2017-10-26 15:22 ` [PATCH net-next 3/9] net: dsa: fix dsa_is_normal_port helper Vivien Didelot
2017-10-26 23:08   ` Florian Fainelli
2017-10-26 15:22 ` [PATCH net-next 4/9] net: dsa: rename " Vivien Didelot
2017-10-26 23:09   ` Florian Fainelli
2017-10-26 15:22 ` [PATCH net-next 5/9] net: dsa: use dsa_is_user_port everywhere Vivien Didelot
2017-10-27  0:15   ` Florian Fainelli
2017-10-26 15:22 ` [PATCH net-next 6/9] net: dsa: introduce dsa_user_ports helper Vivien Didelot
2017-10-26 15:22 ` [PATCH net-next 7/9] net: dsa: define port types Vivien Didelot
2017-10-26 15:36   ` Jiri Pirko
2017-10-26 15:39     ` Vivien Didelot
2017-10-26 15:22 ` [PATCH net-next 8/9] net: dsa: use new port type in helpers Vivien Didelot
2017-10-26 15:22 ` [PATCH net-next 9/9] net: dsa: remove port masks Vivien Didelot
2017-10-27 15:00 ` David Miller [this message]
2017-10-27 12:56 [PATCH net-next 0/9] net: dsa: define port types Egil Hjelmeland
2017-10-27 13:44 ` Vivien Didelot
2017-10-27 19:37 ` Andrew Lunn
2017-10-28 11:15   ` Egil Hjelmeland

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=20171028.000027.15576492722845843.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=andrew@lunn.ch \
    --cc=f.fainelli@gmail.com \
    --cc=kernel@savoirfairelinux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=vivien.didelot@savoirfairelinux.com \
    /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

all inboxes | Powered by JetHome®