HomeFreeBSD

iavf: Add explicit ifdi_needs_reset for VLAN changes

Description

iavf: Add explicit ifdi_needs_reset for VLAN changes

In rS360398, a new iflib device method was added with default of opt out
for VLAN events needing an interface reset.

iavf(4) was the original need for this, because VLAN filter changes
currently have negative interactions with Malicious Driver Detection.

Add iavf_if_needs_restart and explicitly enable VLAN re-init.

Sponsored by: BBOX.io
Differential Revision: https://reviews.freebsd.org/D41558

(cherry picked from commit 1d6c12c511ae2a394d3ca1998a10f3d3bd25d313)

Details

Provenance
Kevin Bowling <kbowling@FreeBSD.org>Authored on Aug 24 2023, 8:36 PM
Differential Revision
D41558: iflib: invert default restart on VLAN changes
Parents
rGca3fc7aabe39: bnxt: Don't restart on VLAN changes
Branches
Unknown
Tags
Unknown