Re: [PATCH net-next v2 5/5] net: dsa: motorcomm: Add TC prio support
From: Andrew Lunn
Date: Sun Oct 04 2026 - 10:13:41 EST
On Fri, Oct 02, 2026 at 04:48:48AM +0800, David Yang wrote:
> The HW supports fewer ACL priorities than TC does. Notice the default
> priority for flower is 49152 and catchall filter has priority 65535, so
> scale the priority accordingly and reject the ones that do not map onto
> a hardware priority.
It would be good to document what the actual mapping is. I think you
divide by 512, and then invert?
The code itself looks O.K.
Andrew