aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/dsa.h1
-rw-r--r--net/dsa/dsa.c1
-rw-r--r--net/dsa/tag_brcm.c2
-rw-r--r--net/dsa/tag_dsa.c1
-rw-r--r--net/dsa/tag_edsa.c1
-rw-r--r--net/dsa/tag_gswip.c1
-rw-r--r--net/dsa/tag_ksz.c2
-rw-r--r--net/dsa/tag_lan9303.c1
-rw-r--r--net/dsa/tag_mtk.c1
-rw-r--r--net/dsa/tag_qca.c1
-rw-r--r--net/dsa/tag_trailer.c1
11 files changed, 13 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 8f3d5e0825a2..720036f48fb3 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -70,6 +70,7 @@ struct dsa_device_ops {
70 int *offset); 70 int *offset);
71 unsigned int overhead; 71 unsigned int overhead;
72 const char *name; 72 const char *name;
73 enum dsa_tag_protocol proto;
73}; 74};
74 75
75#define DSA_TAG_DRIVER_ALIAS "dsa_tag-" 76#define DSA_TAG_DRIVER_ALIAS "dsa_tag-"
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 92b3cd129eb7..2da733dff86b 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -36,6 +36,7 @@ static struct sk_buff *dsa_slave_notag_xmit(struct sk_buff *skb,
36 36
37static const struct dsa_device_ops none_ops = { 37static const struct dsa_device_ops none_ops = {
38 .name = "none", 38 .name = "none",
39 .proto = DSA_TAG_PROTO_NONE,
39 .xmit = dsa_slave_notag_xmit, 40 .xmit = dsa_slave_notag_xmit,
40 .rcv = NULL, 41 .rcv = NULL,
41}; 42};
diff --git a/net/dsa/tag_brcm.c b/net/dsa/tag_brcm.c
index 59421f9e96de..39b380485e5a 100644
--- a/net/dsa/tag_brcm.c
+++ b/net/dsa/tag_brcm.c
@@ -169,6 +169,7 @@ static struct sk_buff *brcm_tag_rcv(struct sk_buff *skb, struct net_device *dev,
169 169
170const struct dsa_device_ops brcm_netdev_ops = { 170const struct dsa_device_ops brcm_netdev_ops = {
171 .name = "brcm", 171 .name = "brcm",
172 .proto = DSA_TAG_PROTO_BRCM,
172 .xmit = brcm_tag_xmit, 173 .xmit = brcm_tag_xmit,
173 .rcv = brcm_tag_rcv, 174 .rcv = brcm_tag_rcv,
174 .overhead = BRCM_TAG_LEN, 175 .overhead = BRCM_TAG_LEN,
@@ -195,6 +196,7 @@ static struct sk_buff *brcm_tag_rcv_prepend(struct sk_buff *skb,
195 196
196const struct dsa_device_ops brcm_prepend_netdev_ops = { 197const struct dsa_device_ops brcm_prepend_netdev_ops = {
197 .name = "brcm-prepend", 198 .name = "brcm-prepend",
199 .proto = DSA_TAG_PROTO_BRCM_PREPEND,
198 .xmit = brcm_tag_xmit_prepend, 200 .xmit = brcm_tag_xmit_prepend,
199 .rcv = brcm_tag_rcv_prepend, 201 .rcv = brcm_tag_rcv_prepend,
200 .overhead = BRCM_TAG_LEN, 202 .overhead = BRCM_TAG_LEN,
diff --git a/net/dsa/tag_dsa.c b/net/dsa/tag_dsa.c
index b8f3236db877..ec9b66c11219 100644
--- a/net/dsa/tag_dsa.c
+++ b/net/dsa/tag_dsa.c
@@ -152,6 +152,7 @@ static int dsa_tag_flow_dissect(const struct sk_buff *skb, __be16 *proto,
152 152
153const struct dsa_device_ops dsa_netdev_ops = { 153const struct dsa_device_ops dsa_netdev_ops = {
154 .name = "dsa", 154 .name = "dsa",
155 .proto = DSA_TAG_PROTO_DSA,
155 .xmit = dsa_xmit, 156 .xmit = dsa_xmit,
156 .rcv = dsa_rcv, 157 .rcv = dsa_rcv,
157 .flow_dissect = dsa_tag_flow_dissect, 158 .flow_dissect = dsa_tag_flow_dissect,
diff --git a/net/dsa/tag_edsa.c b/net/dsa/tag_edsa.c
index c4fddf7292cf..866d4e684511 100644
--- a/net/dsa/tag_edsa.c
+++ b/net/dsa/tag_edsa.c
@@ -171,6 +171,7 @@ static int edsa_tag_flow_dissect(const struct sk_buff *skb, __be16 *proto,
171 171
172const struct dsa_device_ops edsa_netdev_ops = { 172const struct dsa_device_ops edsa_netdev_ops = {
173 .name = "edsa", 173 .name = "edsa",
174 .proto = DSA_TAG_PROTO_EDSA,
174 .xmit = edsa_xmit, 175 .xmit = edsa_xmit,
175 .rcv = edsa_rcv, 176 .rcv = edsa_rcv,
176 .flow_dissect = edsa_tag_flow_dissect, 177 .flow_dissect = edsa_tag_flow_dissect,
diff --git a/net/dsa/tag_gswip.c b/net/dsa/tag_gswip.c
index 6a7ff063b6e0..192156373108 100644
--- a/net/dsa/tag_gswip.c
+++ b/net/dsa/tag_gswip.c
@@ -105,6 +105,7 @@ static struct sk_buff *gswip_tag_rcv(struct sk_buff *skb,
105 105
106const struct dsa_device_ops gswip_netdev_ops = { 106const struct dsa_device_ops gswip_netdev_ops = {
107 .name = "gwsip", 107 .name = "gwsip",
108 .proto = DSA_TAG_PROTO_GSWIP,
108 .xmit = gswip_tag_xmit, 109 .xmit = gswip_tag_xmit,
109 .rcv = gswip_tag_rcv, 110 .rcv = gswip_tag_rcv,
110 .overhead = GSWIP_RX_HEADER_LEN, 111 .overhead = GSWIP_RX_HEADER_LEN,
diff --git a/net/dsa/tag_ksz.c b/net/dsa/tag_ksz.c
index 6d78d88270fc..5f5c8f9a6141 100644
--- a/net/dsa/tag_ksz.c
+++ b/net/dsa/tag_ksz.c
@@ -135,6 +135,7 @@ static struct sk_buff *ksz9477_rcv(struct sk_buff *skb, struct net_device *dev,
135 135
136const struct dsa_device_ops ksz9477_netdev_ops = { 136const struct dsa_device_ops ksz9477_netdev_ops = {
137 .name = "ksz9477", 137 .name = "ksz9477",
138 .proto = DSA_TAG_PROTO_KSZ9477,
138 .xmit = ksz9477_xmit, 139 .xmit = ksz9477_xmit,
139 .rcv = ksz9477_rcv, 140 .rcv = ksz9477_rcv,
140 .overhead = KSZ9477_INGRESS_TAG_LEN, 141 .overhead = KSZ9477_INGRESS_TAG_LEN,
@@ -171,6 +172,7 @@ static struct sk_buff *ksz9893_xmit(struct sk_buff *skb,
171 172
172const struct dsa_device_ops ksz9893_netdev_ops = { 173const struct dsa_device_ops ksz9893_netdev_ops = {
173 .name = "ksz9893", 174 .name = "ksz9893",
175 .proto = DSA_TAG_PROTO_KSZ9893,
174 .xmit = ksz9893_xmit, 176 .xmit = ksz9893_xmit,
175 .rcv = ksz9477_rcv, 177 .rcv = ksz9477_rcv,
176 .overhead = KSZ_INGRESS_TAG_LEN, 178 .overhead = KSZ_INGRESS_TAG_LEN,
diff --git a/net/dsa/tag_lan9303.c b/net/dsa/tag_lan9303.c
index 1f5819e4e687..b6ef1e1a6673 100644
--- a/net/dsa/tag_lan9303.c
+++ b/net/dsa/tag_lan9303.c
@@ -130,6 +130,7 @@ static struct sk_buff *lan9303_rcv(struct sk_buff *skb, struct net_device *dev,
130 130
131const struct dsa_device_ops lan9303_netdev_ops = { 131const struct dsa_device_ops lan9303_netdev_ops = {
132 .name = "lan9303", 132 .name = "lan9303",
133 .proto = DSA_TAG_PROTO_LAN9303,
133 .xmit = lan9303_xmit, 134 .xmit = lan9303_xmit,
134 .rcv = lan9303_rcv, 135 .rcv = lan9303_rcv,
135 .overhead = LAN9303_TAG_LEN, 136 .overhead = LAN9303_TAG_LEN,
diff --git a/net/dsa/tag_mtk.c b/net/dsa/tag_mtk.c
index 7ecafb569f74..ca02ab3dcd80 100644
--- a/net/dsa/tag_mtk.c
+++ b/net/dsa/tag_mtk.c
@@ -100,6 +100,7 @@ static int mtk_tag_flow_dissect(const struct sk_buff *skb, __be16 *proto,
100 100
101const struct dsa_device_ops mtk_netdev_ops = { 101const struct dsa_device_ops mtk_netdev_ops = {
102 .name = "mtk", 102 .name = "mtk",
103 .proto = DSA_TAG_PROTO_MTK,
103 .xmit = mtk_tag_xmit, 104 .xmit = mtk_tag_xmit,
104 .rcv = mtk_tag_rcv, 105 .rcv = mtk_tag_rcv,
105 .flow_dissect = mtk_tag_flow_dissect, 106 .flow_dissect = mtk_tag_flow_dissect,
diff --git a/net/dsa/tag_qca.c b/net/dsa/tag_qca.c
index f3fdeafef1fe..1ff65c2e0cb4 100644
--- a/net/dsa/tag_qca.c
+++ b/net/dsa/tag_qca.c
@@ -101,6 +101,7 @@ static int qca_tag_flow_dissect(const struct sk_buff *skb, __be16 *proto,
101 101
102const struct dsa_device_ops qca_netdev_ops = { 102const struct dsa_device_ops qca_netdev_ops = {
103 .name = "qca", 103 .name = "qca",
104 .proto = DSA_TAG_PROTO_QCA,
104 .xmit = qca_tag_xmit, 105 .xmit = qca_tag_xmit,
105 .rcv = qca_tag_rcv, 106 .rcv = qca_tag_rcv,
106 .flow_dissect = qca_tag_flow_dissect, 107 .flow_dissect = qca_tag_flow_dissect,
diff --git a/net/dsa/tag_trailer.c b/net/dsa/tag_trailer.c
index 9ec6aa7938cc..628ab1a44ed7 100644
--- a/net/dsa/tag_trailer.c
+++ b/net/dsa/tag_trailer.c
@@ -79,6 +79,7 @@ static struct sk_buff *trailer_rcv(struct sk_buff *skb, struct net_device *dev,
79 79
80const struct dsa_device_ops trailer_netdev_ops = { 80const struct dsa_device_ops trailer_netdev_ops = {
81 .name = "trailer", 81 .name = "trailer",
82 .proto = DSA_TAG_PROTO_TRAILER,
82 .xmit = trailer_xmit, 83 .xmit = trailer_xmit,
83 .rcv = trailer_rcv, 84 .rcv = trailer_rcv,
84 .overhead = 4, 85 .overhead = 4,