Re: [PATCH v2 0/6] Configurable VLAN mode for NCSI driver

From
Jakub Kicinski <kuba@kernel.org>
Date
2022-06-11 04:45:19
Also in
linux-devicetree, lkml, openbmc
Reply to
Jiaqing Zhao, 2022-06-11
On Sat, 11 Jun 2022 11:25:03 +0800 Jiaqing Zhao wrote:
quoted
Why is "ncsi,vlan-mode" set via the device tree? Looks like something
that can be configured at runtime.   
Actually this cannot be configured at runtime, the NCSI spec defines no
command or register to determine which mode is supported by the device.
To be clear I'm not saying that it should be auto-detected and
auto-configured. Just that user space can issue a command to change 
the config.
If kernel want to enable VLAN on the NCSI device, either "Filtered tagged
+ Untagged" (current default) or "Any tagged + untagged" mode should be
enabled, but unfortunately both of these two modes are documented to be
optionally supported in the spec. And in real cases, there are devices
that only supports one of them, or neither of them. So I added the device
tree property to configure which mode to use.
But for a given device its driver knows what modes are supported.
Is it not possible to make the VLAN mode passed thru ncsi-netlink?

Better still, can't "Filtered tagged + Untagged" vs "Any tagged +
untagged" be decided based on netdev features being enabled like it
is for normal netdevs?
Thread (17 messages) 17 messages, 3 authors, last reply 2022-06-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help