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

(cherry picked from commit 5438ef47e377d659acf7f97a66fe418223f2c847)

Details

Provenance
kdAuthored on Aug 31 2021, 6:22 AM
wmaCommitted on Sep 28 2021, 7:35 AM
Reviewer
wma
Differential Revision
D31724: mvneta: Fix MTU update sequence
Parents
rG28df957acb93: if_cdce: Add support for setting RX filtering
Branches
Unknown
Tags
Unknown