HomeFreeBSD

ixl(4): Fix SR-IOV panics

Description

ixl(4): Fix SR-IOV panics

The hw and ifp of a vsi will be NULL if such ixl_vsi is allocated
for a VF. When ixl_reconfigure_filters called, it is trying to
access vsi->ifp and hw->mac.addr and therefore is casuing panic.

This commit add checks to determine if vsi is a VF by checking
if vsi->hw is NULL, before adding IXL_VLAN_ANY filter (which
is already in a VF vsi's filter list) and VLAN filters.

(erj's Note: The SR-IOV flows need revisiting; this will help
prevent panics for now)

Reviewed by: krzysztof.galazka@intel.com, erj@
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D35649

Details

Provenance
nyan_myuji.xyzAuthored on Jul 13 2022, 1:16 AM
erjCommitted on Jul 13 2022, 1:17 AM
Differential Revision
D35649: Fix ixl SR-IOV.
Parents
rGbecd9908beb8: rtld-elf: Fix leaks and wild frees in origin_subst
Branches
Unknown
Tags
Unknown