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

From: Florian Fainelli

Date: Mon Apr 06 2026 - 13:20:47 EST


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@xxxxxxxxxxx>

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