[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87v9b249oq.fsf@waldekranz.com>
Date: Mon, 08 Feb 2021 20:54:29 +0100
From: Tobias Waldekranz <tobias@...dekranz.com>
To: Jakub Kicinski <kuba@...nel.org>,
Vadym Kochan <vadym.kochan@...ision.eu>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Mickey Rachamim <mickeyr@...vell.com>,
linux-kernel@...r.kernel.org,
Vladimir Oltean <vladimir.oltean@....com>
Subject: Re: [PATCH net-next 5/7] net: marvell: prestera: add LAG support
On Thu, Feb 04, 2021 at 21:16, Jakub Kicinski <kuba@...nel.org> wrote:
> On Wed, 3 Feb 2021 18:54:56 +0200 Vadym Kochan wrote:
>> From: Serhiy Boiko <serhiy.boiko@...ision.eu>
>>
>> The following features are supported:
>>
>> - LAG basic operations
>> - create/delete LAG
>> - add/remove a member to LAG
>> - enable/disable member in LAG
>> - LAG Bridge support
>> - LAG VLAN support
>> - LAG FDB support
>>
>> Limitations:
>>
>> - Only HASH lag tx type is supported
>> - The Hash parameters are not configurable. They are applied
>> during the LAG creation stage.
>> - Enslaving a port to the LAG device that already has an
>> upper device is not supported.
>
> Tobias, Vladimir, you worked on LAG support recently, would you mind
> taking a look at this one?
Hi Jakub,
I took a quick look at it, and what I found left me very puzzled. I hope
you do not mind me asking a generic question about the policy around
switchdev drivers. If someone published a driver using something similar
to the following configuration flow:
iproute2 daemon(SDK)
| ^ |
: : : user/kernel boundary
v | |
netlink | |
| | |
v | |
driver | |
| | |
'--------' |
: kernel/hardware boundary
v
ASIC
My guess is that they would be (rightly IMO) told something along the
lines of "we do not accept drivers that are just shims for proprietary
SDKs".
But it seems like if that same someone has enough area to spare in their
ASIC to embed a CPU, it is perfectly fine to run that same SDK on it,
call it "firmware", and then push a shim driver into the kernel tree.
iproute2
|
: user/kernel boundary
v
netlink
|
v
driver
|
|
: kernel/hardware boundary
'-------------.
v
daemon(SDK)
|
v
ASIC
What have we, the community, gained by this? In the old world, the
vendor usually at least had to ship me the SDK in source form. Having
seen the inside of some of those sausage factories, they are not the
kinds of code bases that I want at the bottom of my stack; even less so
in binary form where I am entirely at the vendor's mercy for bugfixes.
We are talking about a pure Ethernet fabric here, so there is no fig
leaf of "regulatory requirements" to hide behind, in contrast to WiFi
for example.
Is it the opinion of the netdev community that it is OK for vendors to
use this model?
Powered by blists - more mailing lists