🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Linus Walleij Sun, 29 Nov 2026 22:51
Re: [PATCH net-next v16 13/15] net: dsa: realtek: rtl8365mb: refactor QoS priority handling
#24245
Author: Linus Walleij
Date: Sun, 29 Nov 2026 22:51
29 lines
10299 bytes
On Sun, Nov 29, 2026 at 4:12 PM Mieczyslaw Nalewaj <namiltd@yahoo.com> wrote:

> The shared QoS layer hands the backend internal priorities that are
> 802.1Q traffic types, and the backend stores them in the chip as they
> are, together with a separate per-port PCP for untagged frames. Family D
> numbers its internal priorities differently and has no separate
> untagged-PCP register, which the next patch adds.
>
> Move the conversion between a traffic type and the chip's priority, and
> the programming of the PCP of untagged frames, behind three new hooks in
> struct rtl8365mb_family_info, as for the VLAN, PVID and L2 helpers:
> qos_iprio_to_hw, qos_hw_to_iprio and qos_set_untag_pcp. The existing
> behaviour becomes the family C implementation: the traffic type is
> stored as it is and the untagged PCP register is written as before.
> rtl8365mb_qos_qmap_init() now iterates over the chip's priorities and
> converts each one back to its traffic type. Name the qmap index
> hw_prio throughout, because it is already in the chip's numbering.
>
> No functional change.
>
> Tested-by: Gustavo Foletto Mora <gusfmora@gmail.com>
> Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>

Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads