[PATCH net-next v2] net: airoha: add ethtool priv_flags support for LAN/WAN and GDM2 loopback

Lorenzo Bianconi lorenzo at kernel.org
Mon Jun 8 02:32:23 PDT 2026


> On Sun, Jun 07, 2026 at 08:07:37PM +0200, Lorenzo Bianconi wrote:
> > > > When a GDM3/GDM4 port is set to WAN mode, enable GDM2 loopback to
> > > > support hardware QoS. Conversely, when switching back to LAN mode,
> > > > disable the GDM2 loopback and restore the default forwarding
> > > > configuration.
> > > 
> > > Why not just use the presence of an off loadable qdisc as the
> > > indicator to change mode?
> > 
> > Hi Andrew,
> > 
> > Interesting, can you please provide more details about you mean?
> 
> You say you need it to be in loopback mode in order to support
> hardware QoS. You configure QoS by using a qdisc, and something like
> mqprio, tcf etc. So when the user configures QoS, you can see if the
> hardware supports the request QoS. If so, swap to loopback mode and
> offload the QoS function to the hardware. If the hardware does not
> support the requested QoS, leave it in software and keep with LAN
> mode.

ack thx, nice idea. I will rework this patch in order to rely on tc to
configure GDM3/GDM4 ports in LAN/WAN mode.

Regards,
Lorenzo

> 
> 	Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260608/07ed8138/attachment.sig>


More information about the linux-arm-kernel mailing list