summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2017-04-18 10:48:24 +0200
committerDavid S. Miller <davem@davemloft.net>2017-04-20 19:48:54 +0200
commite8fe177a62feaf576cd9869d9bfedf9c9574bb12 (patch)
tree1a810507e31bc391445d12e85b45261ae1cc5776 /include/net
parentnet/mlx4: suppress 'may be used uninitialized' warning (diff)
downloadlinux-e8fe177a62feaf576cd9869d9bfedf9c9574bb12.tar.xz
linux-e8fe177a62feaf576cd9869d9bfedf9c9574bb12.zip
net: dsa: add support for the SMSC-LAN9303 tagging format
To define the outgoing port and to discover the incoming port a regular VLAN tag is used by the LAN9303. But its VID meaning is 'special'. This tag handler/filter depends on some hardware features which must be enabled in the device to provide and make use of this special VLAN tag to control the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/dsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 04c3fe93f803..8e24677b1c62 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -33,6 +33,7 @@ enum dsa_tag_protocol {
DSA_TAG_PROTO_BRCM,
DSA_TAG_PROTO_QCA,
DSA_TAG_PROTO_MTK,
+ DSA_TAG_PROTO_LAN9303,
DSA_TAG_LAST, /* MUST BE LAST */
};