2022-11-16 08:55:25

by Felix Fietkau

[permalink] [raw]
Subject: [PATCH net-next 5/6] net: dsa: tag_mtk: assign per-port queues

Keeps traffic sent to the switch within link speed limits

Signed-off-by: Felix Fietkau <[email protected]>
---
net/dsa/tag_mtk.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/net/dsa/tag_mtk.c b/net/dsa/tag_mtk.c
index 415d8ece242a..5953356b829d 100644
--- a/net/dsa/tag_mtk.c
+++ b/net/dsa/tag_mtk.c
@@ -25,6 +25,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
--
2.38.1



2022-11-16 19:10:01

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH net-next 5/6] net: dsa: tag_mtk: assign per-port queues



On 11/16/2022 12:07 AM, Felix Fietkau wrote:
> Keeps traffic sent to the switch within link speed limits
>
> Signed-off-by: Felix Fietkau <[email protected]>

Reviewed-by: Florian Fainelli <[email protected]>
--
Florian