From: "Tobias Waldekranz" <tobias@waldekranz.com>
To: "Andrew Lunn" <andrew@lunn.ch>,
"Florian Fainelli" <f.fainelli@gmail.com>
Cc: "Tobias Waldekranz" <tobias@waldekranz.com>,
<davem@davemloft.net>, <kuba@kernel.org>,
<vivien.didelot@gmail.com>, <olteanv@gmail.com>,
<j.vosburgh@gmail.com>, <vfalico@gmail.com>, <andy@greyhouse.net>,
<netdev@vger.kernel.org>
Subject: Re: [PATCH net-next 2/4] net: dsa: Link aggregation support
Date: Sat, 28 Nov 2020 20:48:52 +0100 [thread overview]
Message-ID: <C7F5NW46RGKW.HWQYN850NOTL@wkz-x280> (raw)
In-Reply-To: <20201128163805.GB2191767@lunn.ch>
On Sat Nov 28, 2020 at 6:38 PM CET, Andrew Lunn wrote:
> > > OK I think I finally see what you are saying. Sorry it took me this
> > > long. I do not mean to be difficult, I just want to understand.
>
> Not a problem. This is a bit different to normal, the complexity of
> the stack means you need to handle this different to most drivers. If
> you have done any deeply embedded stuff, RTOS, allocating everything
> up front is normal, it eliminates a whole class of problems.
Yeah I am well aware, Linux is pretty far from that kind of embedded
though :)
The problem here, IMHO, is not really the allocation. Rather we want
to shift as much work as possible from CHANGEUPPER to PRECHANGEUPPER
to signal errors early, this was the part that was not clicking for
me.
And you can not allocate anything in PRECHANGE, because there may
never be a corresponding CHANGEUPPER if another subscriber on the
chain throws an error. _That_ is what forces you to use the static
array.
> This is all reasonable. I just wonder what that number is for the
> mv88e6xx case, especially for D in DSA. I guess LAGs are global in
> scope across a set of switches. So it does not matter if there is one
> switch or lots of switches, the lags_max stays the same.
For everything up to Agate, the max is 16. Peridot (and I guess Topaz)
can potentially do 32, but mv88e6xxx never sets the "5-bit port" mode
AFAIK, so in practice the max is 16 across the board.
Yes the LAG IDs are global, they must be configured on all switches,
even those that have no local member ports. So the pool will hold 16
entries on a mv88e6xxx tree.
next prev parent reply other threads:[~2020-11-28 22:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 14:45 [PATCH net-next 0/4] net: dsa: Link aggregation support Tobias Waldekranz
2020-11-19 14:45 ` [PATCH net-next 1/4] net: bonding: Notify ports about their initial state Tobias Waldekranz
2020-11-19 18:18 ` Jay Vosburgh
2020-11-19 21:20 ` Tobias Waldekranz
2020-11-19 14:45 ` [PATCH net-next 2/4] net: dsa: Link aggregation support Tobias Waldekranz
2020-11-20 0:30 ` Andrew Lunn
2020-11-20 2:43 ` Florian Fainelli
2020-11-20 13:30 ` Andrew Lunn
2020-11-26 22:36 ` Tobias Waldekranz
2020-11-26 22:57 ` Andrew Lunn
2020-11-27 9:19 ` Tobias Waldekranz
2020-11-27 16:28 ` Andrew Lunn
2020-11-27 23:19 ` Tobias Waldekranz
2020-11-28 5:19 ` Florian Fainelli
2020-11-28 16:38 ` Andrew Lunn
2020-11-28 19:48 ` Tobias Waldekranz [this message]
2020-11-19 14:45 ` [PATCH net-next 3/4] net: dsa: mv88e6xxx: " Tobias Waldekranz
2020-11-19 14:45 ` [PATCH net-next 4/4] net: dsa: tag_dsa: Support reception of packets from LAG devices Tobias Waldekranz
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=C7F5NW46RGKW.HWQYN850NOTL@wkz-x280 \
--to=tobias@waldekranz.com \
--cc=andrew@lunn.ch \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=j.vosburgh@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=vfalico@gmail.com \
--cc=vivien.didelot@gmail.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