7739366ade3ced0c15210f1a4fcb82123fbe02f2
[openwrt/staging/noltari.git] / target / linux / generic / pending-5.15 / 732-05-net-dsa-tag_mtk-assign-per-port-queues.patch
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
4
5 Keeps traffic sent to the switch within link speed limits
6
7 Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 ---
9
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))
14 return NULL;
15
16 + skb_set_queue_mapping(skb, dp->index);
17 +
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