1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Fri, 28 Oct 2022 18:16:03 +0200
3 Subject: [PATCH] net: dsa: tag_mtk: assign per-port queues
5 Keeps traffic sent to the switch within link speed limits
7 Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 --- a/net/dsa/tag_mtk.c
11 +++ b/net/dsa/tag_mtk.c
12 @@ -33,6 +33,8 @@ static struct sk_buff *mtk_tag_xmit(stru
13 if (__skb_put_padto(skb, ETH_ZLEN + MTK_HDR_LEN, false))
16 + skb_set_queue_mapping(skb, dp->index);
18 /* Build the special tag after the MAC Source Address. If VLAN header
19 * is present, it's required that VLAN header and special tag is
20 * being combined. Only in this way we can allow the switch can parse