]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: tag_8021q: introduce a vid_is_dsa_8021q helper
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 12 May 2020 17:20:26 +0000 (20:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2020 20:08:07 +0000 (13:08 -0700)
commit2917958a30920f6bfca1e65233aea406dde1387d
tree391a0b292f8a28f898f4e43ac7cd90a32a1677ff
parentf2d8b1d957909de4c276dd5a6eaa25712861c252
net: dsa: tag_8021q: introduce a vid_is_dsa_8021q helper

This function returns a boolean denoting whether the VLAN passed as
argument is part of the 1024-3071 range that the dsa_8021q tagging
scheme uses.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dsa/8021q.h
net/dsa/tag_8021q.c