]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Don't offload port attributes on standalone ports
authorTobias Waldekranz <tobias@waldekranz.com>
Wed, 13 Jan 2021 08:42:52 +0000 (09:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 01:11:55 +0000 (17:11 -0800)
commit87bd3c8f0d7752fb5591fef75f55cc3f19340a50
tree7baa89ba10c629c9ab3ec006faf3e75539f2fafd
parented4684387d576f1be9687d5ab7283b0b93642c0b
net: dsa: Don't offload port attributes on standalone ports

In a situation where a standalone port is indirectly attached to a
bridge (e.g. via a LAG) which is not offloaded, do not offload any
port attributes either. The port should behave as a standard NIC.

Previously, on mv88e6xxx, this meant that in the following setup:

     br0
     /
  team0
   / \
swp0 swp1

If vlan filtering was enabled on br0, swp0's and swp1's QMode was set
to "secure". This caused all untagged packets to be dropped, as their
default VID (0) was not loaded into the VTU.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/slave.c