aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/sja1105/sja1105_main.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-10-01 16:28:43 +0200
committerDavid S. Miller <davem@davemloft.net>2019-10-02 12:09:23 -0400
commite8521e53cca584ddf8ec4584d3c550a6c65f88c4 (patch)
tree8b76303b16a4d25a9dce0dbe9109dec37e3a4809 /drivers/net/dsa/sja1105/sja1105_main.c
parentmlx5: avoid 64-bit division in dr_icm_pool_mr_create() (diff)
downloadlinux-dev-e8521e53cca584ddf8ec4584d3c550a6c65f88c4.tar.xz
linux-dev-e8521e53cca584ddf8ec4584d3c550a6c65f88c4.zip
net: dsa: rtl8366: Check VLAN ID and not ports
There has been some confusion between the port number and the VLAN ID in this driver. What we need to check for validity is the VLAN ID, nothing else. The current confusion came from assigning a few default VLANs for default routing and we need to rewrite that properly. Instead of checking if the port number is a valid VLAN ID, check the actual VLAN IDs passed in to the callback one by one as expected. Fixes: d8652956cf37 ("net: dsa: realtek-smi: Add Realtek SMI driver") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105_main.c')
0 files changed, 0 insertions, 0 deletions