Re: [PATCH net v3] net: dsa: tag_rtl4_a: Bump min packet size

From: Linus Walleij
Date: Thu Nov 02 2023 - 18:10:38 EST


On Thu, Nov 2, 2023 at 7:43 PM Florian Fainelli <f.fainelli@xxxxxxxxx> wrote:

> Looking at drivers/net/ethernet/cortina/gemini.c, should not we account
> for when the MAC is used as a conduit and include the right amount of
> "MTU" bytes? Something like this (compile tested only):

The DSA core already fixes this by adding the tag size to the MTU
of the conduit interface, so netdev->mtu is already 1504 for this
switch.

I found other oddities though so I'm digging into the driver!

Thanks,
Linus Walleij