Re: [PATCH net-next] net: dsa: tag_ocelot: use traffic class to map priority on injected header

From: Jakub Kicinski
Date: Wed Dec 22 2021 - 17:23:43 EST


On Tue, 21 Dec 2021 19:02:09 +0800 Xiaoliang Yang wrote:
> For Ocelot switches, the CPU injected frames have an injection header
> where it can specify the QoS class of the packet and the DSA tag, now it
> uses the SKB priority to set that. If a traffic class to priority
> mapping is configured on the netdevice (with mqprio for example ...), it
> won't be considered for CPU injected headers. This patch make the QoS
> class aligned to the priority to traffic class mapping if it exists.
>
> Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@xxxxxxx>
> Signed-off-by: Marouen Ghodhbane <marouen.ghodhbane@xxxxxxx>

Is this a fix? Looks like one.