summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-08-28 02:04:55 +0200
committerDavid S. Miller <davem@davemloft.net>2014-08-28 07:59:40 +0200
commit5037d532b83d7325a2743dffe82882a64697a8e8 (patch)
tree6e972e759c9facbcbc7952baa619e991b9fa0343 /include
parentnet: dsa: allow updating fixed PHY link information (diff)
downloadlinux-5037d532b83d7325a2743dffe82882a64697a8e8.tar.xz
linux-5037d532b83d7325a2743dffe82882a64697a8e8.zip
net: dsa: add Broadcom tag RX/TX handler
Add support for the 4-bytes Broadcom tag that built-in switches such as the Starfighter 2 might insert when receiving packets, or that we need to insert while targetting specific switch ports. We use a fake local EtherType value for this 4-bytes switch tag: ETH_P_BRCMTAG to make sure we can assign DSA-specific network operations within the DSA drivers. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/dsa.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 2c9563f0b2f4..97712927a9d2 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -19,6 +19,11 @@
#include <linux/phy.h>
#include <linux/phy_fixed.h>
+/* Not an official ethertype value, used only internally for DSA
+ * demultiplexing
+ */
+#define ETH_P_BRCMTAG (ETH_P_XDSA + 1)
+
#define DSA_MAX_SWITCHES 4
#define DSA_MAX_PORTS 12