From: Mans Rullgard <hidden> Date: 2022-02-16 20:48:30
If the master device does VLAN filtering, the IDs used by the switch
must be added for any frames to be received. Do this in the
port_enable() function, and remove them in port_disable().
Signed-off-by: Mans Rullgard <redacted>
---
Changes:
- Fix dependency on VLAN_8021Q
- Add missing #include
---
drivers/net/dsa/Kconfig | 1 +
drivers/net/dsa/lan9303-core.c | 11 +++++++++--
2 files changed, 10 insertions(+), 2 deletions(-)
If the master device does VLAN filtering, the IDs used by the switch
must be added for any frames to be received. Do this in the
port_enable() function, and remove them in port_disable().
Signed-off-by: Mans Rullgard <redacted>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Should this have :
Fixes: a1292595e006 ("net: dsa: add new DSA switch driver for the
SMSC-LAN9303")
--
Florian
From: Vladimir Oltean <olteanv@gmail.com> Date: 2022-02-16 23:59:41
On Wed, Feb 16, 2022 at 08:48:18PM +0000, Mans Rullgard wrote:
If the master device does VLAN filtering, the IDs used by the switch
must be added for any frames to be received. Do this in the
port_enable() function, and remove them in port_disable().
Signed-off-by: Mans Rullgard <redacted>
---
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski [off-list ref]:
On Wed, 16 Feb 2022 20:48:18 +0000 you wrote:
If the master device does VLAN filtering, the IDs used by the switch
must be added for any frames to be received. Do this in the
port_enable() function, and remove them in port_disable().
Signed-off-by: Mans Rullgard <redacted>
---
Changes:
- Fix dependency on VLAN_8021Q
- Add missing #include
[...]
From: Vladimir Oltean <olteanv@gmail.com> Date: 2022-02-20 17:00:46
On Thu, Feb 17, 2022 at 01:59:30AM +0200, Vladimir Oltean wrote:
On Wed, Feb 16, 2022 at 08:48:18PM +0000, Mans Rullgard wrote:
quoted
If the master device does VLAN filtering, the IDs used by the switch
must be added for any frames to be received. Do this in the
port_enable() function, and remove them in port_disable().
Signed-off-by: Mans Rullgard <redacted>
---
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
There's a problem with this patch.
CONFIG_NET_DSA_SMSC_LAN9303 is not user-selectable, but it is selected
by CONFIG_NET_DSA_SMSC_LAN9303_I2C or CONFIG_NET_DSA_SMSC_LAN9303_MDIO.
The point is that config options that aren't user-selectable but are
automatically selected shouldn't have dependencies. AFAIK, the
dependencies should be transferred to the user-facing options
(_I2C and _MDIO).
What happens is that if you make CONFIG_VLAN_8021Q a module, you get
this warning:
WARNING: unmet direct dependencies detected for NET_DSA_SMSC_LAN9303
Depends on [m]: NETDEVICES [=y] && NET_DSA [=y] && (VLAN_8021Q [=m] || VLAN_8021Q [=m]=n)
Selected by [y]:
- NET_DSA_SMSC_LAN9303_I2C [=y] && NETDEVICES [=y] && NET_DSA [=y] && I2C [=y]
- NET_DSA_SMSC_LAN9303_MDIO [=y] && NETDEVICES [=y] && NET_DSA [=y]
The point of the dependency was to force the LAN9303 driver as a module
if 8021Q is a module, but this doesn't happen because the dependency
isn't where it should be.