summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/b53/b53_priv.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2019-02-15 12:16:49 -0800
committerDavid S. Miller <davem@davemloft.net>2019-02-15 20:37:54 -0800
commitfea83353177a55540c71c140887737c282137aa2 (patch)
treef049ddc5f28ef341bb3951eaca781ab4a3163779 /drivers/net/dsa/b53/b53_priv.h
parentd5be7f632bad0f489879eed0ff4b99bd7fe0b74c (diff)
net: dsa: b53: Fix default VLAN ID
We were not consistent in how the default VID of a given port was defined, b53_br_leave() would make sure the VLAN ID would be either 0/1 depending on the switch generation, but b53_configure_vlan(), which is the default configuration would unconditionally set it to 1. The correct value is 1 for 5325/5365 series and 0 otherwise. To avoid repeating that mistake ever again, introduce a helper function: b53_default_pvid() to factor that out. Fixes: 967dd82ffc52 ("net: dsa: b53: Add support for Broadcom RoboSwitch") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/b53/b53_priv.h')
0 files changed, 0 insertions, 0 deletions