Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Felix Fietkau and committed by
Jakub Kicinski
d169ecb5 f63959c7

+2
+2
net/dsa/tag_mtk.c
··· 27 27 u8 xmit_tpid; 28 28 u8 *mtk_tag; 29 29 30 + skb_set_queue_mapping(skb, dp->index); 31 + 30 32 /* Build the special tag after the MAC Source Address. If VLAN header 31 33 * is present, it's required that VLAN header and special tag is 32 34 * being combined. Only in this way we can allow the switch can parse