kernel: backport some useful LED_FUNCTION_* defines for DT
[openwrt/openwrt.git] / target / linux / generic / backport-6.1 / 730-05-v6.3-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 @@ -25,6 +25,8 @@ static struct sk_buff *mtk_tag_xmit(stru
13 u8 xmit_tpid;
14 u8 *mtk_tag;
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