aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/slave.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r--net/dsa/slave.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 3cb331e98b89..8f8868dd4302 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -239,6 +239,11 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,
239 memcpy(slave_dev->dev_addr, master->dev_addr, ETH_ALEN); 239 memcpy(slave_dev->dev_addr, master->dev_addr, ETH_ALEN);
240 slave_dev->tx_queue_len = 0; 240 slave_dev->tx_queue_len = 0;
241 switch (ds->tag_protocol) { 241 switch (ds->tag_protocol) {
242#ifdef CONFIG_NET_DSA_TAG_DSA
243 case htons(ETH_P_DSA):
244 slave_dev->hard_start_xmit = dsa_xmit;
245 break;
246#endif
242#ifdef CONFIG_NET_DSA_TAG_EDSA 247#ifdef CONFIG_NET_DSA_TAG_EDSA
243 case htons(ETH_P_EDSA): 248 case htons(ETH_P_EDSA):
244 slave_dev->hard_start_xmit = edsa_xmit; 249 slave_dev->hard_start_xmit = edsa_xmit;