summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-11-16 09:07:33 +0100
committerJakub Kicinski <kuba@kernel.org>2022-11-19 04:46:06 +0100
commitd169ecb536e46985e3e2acf5f2b39efae3953c2d (patch)
tree5f0ccb0d3e10e12be1327b34040f5444c4b096eb /net/dsa
parentnet: ethernet: mtk_eth_soc: implement multi-queue support for per-port queues (diff)
downloadlinux-d169ecb536e46985e3e2acf5f2b39efae3953c2d.tar.xz
linux-d169ecb536e46985e3e2acf5f2b39efae3953c2d.zip
net: dsa: tag_mtk: assign per-port queues
Keeps traffic sent to the switch within link speed limits Signed-off-by: Felix Fietkau <nbd@nbd.name> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20221116080734.44013-6-nbd@nbd.name Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/tag_mtk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dsa/tag_mtk.c b/net/dsa/tag_mtk.c
index ba37495ab5f4..8948c4f99f8e 100644
--- a/net/dsa/tag_mtk.c
+++ b/net/dsa/tag_mtk.c
@@ -27,6 +27,8 @@ static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb,
u8 xmit_tpid;
u8 *mtk_tag;
+ skb_set_queue_mapping(skb, dp->index);
+
/* Build the special tag after the MAC Source Address. If VLAN header
* is present, it's required that VLAN header and special tag is
* being combined. Only in this way we can allow the switch can parse