freebsd-dev/sys/dev/ixl
Yan Ka Chiu e706512a2b
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
2022-07-12 18:17:03 -07:00
..
i40e_adminq_cmd.h
i40e_adminq.c
i40e_adminq.h
i40e_alloc.h
i40e_common.c ixl(4): Add support for I710 devices and remove non-inclusive language 2022-05-24 09:12:49 -07:00
i40e_dcb.c
i40e_dcb.h
i40e_devids.h ixl(4): Add support for I710 devices and remove non-inclusive language 2022-05-24 09:12:49 -07:00
i40e_hmc.c
i40e_hmc.h
i40e_lan_hmc.c
i40e_lan_hmc.h
i40e_nvm.c
i40e_osdep.c
i40e_osdep.h
i40e_prototype.h
i40e_register.h
i40e_status.h ixl(4): Add support for I710 devices and remove non-inclusive language 2022-05-24 09:12:49 -07:00
i40e_type.h
if_ixl.c ixl(4): Add support for I710 devices and remove non-inclusive language 2022-05-24 09:12:49 -07:00
ixl_debug.h
ixl_iw_int.h
ixl_iw.c
ixl_iw.h
ixl_pf_i2c.c
ixl_pf_iflib.c
ixl_pf_iov.c
ixl_pf_iov.h
ixl_pf_main.c ixl(4): Fix SR-IOV panics 2022-07-12 18:17:03 -07:00
ixl_pf_qmgr.c
ixl_pf_qmgr.h
ixl_pf.h
ixl_txrx.c
ixl.h
virtchnl.h