HomeFreeBSD

mvneta: Fix MTU update sequence

Description

mvneta: Fix MTU update sequence

After MTU is updated we might start using allocating RX buffers from different pool. (MJUM9BYTES vs MCLBYTES)
Because of that we need to update the RX buffer size in hardware.
Previously it was done only when the interface was up, which is incorrect since MTU can be changed at any time.

Differential revision: https://reviews.freebsd.org/D31724
Sponsored by: Stormshield
Obtained from: Semihalf
MFC after: 2 weeks
Reviewed by: wma

Details

Provenance
kdAuthored on Aug 31 2021, 6:22 AM
wmaCommitted on Aug 31 2021, 6:22 AM
Reviewer
wma
Differential Revision
D31724: mvneta: Fix MTU update sequence
Parents
rGbb536de6c0d7: ffs_update(): Do not assume that EBUSY can only come LK_NOWAIT trylock
Branches
Unknown
Tags
Unknown