Re: [PATCH net-next v6 7/7] net: bcmgenet: reject MTU changes incompatible with XDP

Florian Fainelli
2026-04-06T17:19:28Z

On 4/6/26 01:35, Nicolai Buchwitz wrote:
> Add a minimal ndo_change_mtu that rejects MTU values too large for
> single-page XDP buffers when an XDP program is attached. Without this,
> users could change the MTU at runtime and break the XDP buffer layout.
>
> When no XDP program is attached, any MTU change is accepted, matching
> the existing behavior without ndo_change_mtu.
>
> Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian