summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2020-10-31 11:29:13 +0100
committerJakub Kicinski <kuba@kernel.org>2020-11-03 02:09:06 +0100
commite2b2e83e52f756decbaacd8202f28745bab49e07 (patch)
tree2a2436542df870f98bb43c3d13bb3e75b72a33b6 /include/asm-generic
parentnet: mscc: ocelot: transform the pvid and native vlan values into a structure (diff)
downloadlinux-e2b2e83e52f756decbaacd8202f28745bab49e07.tar.xz
linux-e2b2e83e52f756decbaacd8202f28745bab49e07.zip
net: mscc: ocelot: add a "valid" boolean to struct ocelot_vlan
Currently we are checking in some places whether the port has a native VLAN on egress or not, by comparing the ocelot_port->vid value with zero. That works, because VID 0 can never be a native VLAN configured by the bridge, but now we want to make similar checks for the pvid. That won't work, because there are cases when we do have the pvid set to 0 (not by the bridge, by ourselves, but still.. it's confusing). And we can't encode a negative value into an u16, so add a bool to the structure. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions