summaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_brcm.c
diff options
context:
space:
mode:
authorFlorian Fainelli2017-10-11 19:57:49 +0200
committerDavid S. Miller2017-10-12 21:10:02 +0200
commit0a5f14ce67a6e093e651d3cd75e6ac281123d93a (patch)
treebe53f67eb5014acc40b6d04effd68d425d8bcb18 /net/dsa/tag_brcm.c
parentnet: dsa: Add support for DSA specific notifiers (diff)
downloadkernel-qcow2-linux-0a5f14ce67a6e093e651d3cd75e6ac281123d93a.tar.gz
kernel-qcow2-linux-0a5f14ce67a6e093e651d3cd75e6ac281123d93a.tar.xz
kernel-qcow2-linux-0a5f14ce67a6e093e651d3cd75e6ac281123d93a.zip
net: dsa: tag_brcm: Indicate to master netdevice port + queue
We need to tell the DSA master network device doing the actual transmission what the desired switch port and queue number is for it to resolve that to the internal transmit queue it is mapped to. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag_brcm.c')
-rw-r--r--net/dsa/tag_brcm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/dsa/tag_brcm.c b/net/dsa/tag_brcm.c
index 8e4bdb9d9ae3..cc4f472fbd77 100644
--- a/net/dsa/tag_brcm.c
+++ b/net/dsa/tag_brcm.c
@@ -86,6 +86,12 @@ static struct sk_buff *brcm_tag_xmit(struct sk_buff *skb, struct net_device *dev
brcm_tag[2] = BRCM_IG_DSTMAP2_MASK;
brcm_tag[3] = (1 << p->dp->index) & BRCM_IG_DSTMAP1_MASK;
+ /* Now tell the master network device about the desired output queue
+ * as well
+ */
+ skb_set_queue_mapping(skb, BRCM_TAG_SET_PORT_QUEUE(p->dp->index,
+ queue));
+
return skb;
}