opnsense-src/sys/dev/ixl
Yan Ka Chiu 95d3300d22
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@
Differential Revision:	https://reviews.freebsd.org/D35649

(cherry picked from commit e706512a2b)
2022-10-17 21:19:41 -07:00
..
i40e_adminq.c ixl(4): Fix 2.5 and 5G speeds reporting and update shared code 2021-09-20 13:43:29 -07:00
i40e_adminq.h
i40e_adminq_cmd.h ixl(4): Fix 2.5 and 5G speeds reporting and update shared code 2021-09-20 13:43:29 -07:00
i40e_alloc.h
i40e_common.c ixl(4): Add support for I710 devices and remove non-inclusive language 2022-10-17 21:19:41 -07:00
i40e_dcb.c ixl(4): Fix 2.5 and 5G speeds reporting and update shared code 2021-09-20 13:43:29 -07:00
i40e_dcb.h
i40e_devids.h ixl(4): Add support for I710 devices and remove non-inclusive language 2022-10-17 21:19:41 -07:00
i40e_hmc.c
i40e_hmc.h
i40e_lan_hmc.c ixl(4): Fix 2.5 and 5G speeds reporting and update shared code 2021-09-20 13:43:29 -07:00
i40e_lan_hmc.h
i40e_nvm.c ixl(4): Fix 2.5 and 5G speeds reporting and update shared code 2021-09-20 13:43:29 -07:00
i40e_osdep.c ixl(4): Fix VLAN HW filtering 2021-03-04 17:23:18 -08:00
i40e_osdep.h
i40e_prototype.h ixl(4): Fix 2.5 and 5G speeds reporting and update shared code 2021-09-20 13:43:29 -07:00
i40e_register.h ixl(4): Fix 2.5 and 5G speeds reporting and update shared code 2021-09-20 13:43:29 -07:00
i40e_status.h ixl(4): Add support for I710 devices and remove non-inclusive language 2022-10-17 21:19:41 -07:00
i40e_type.h ixl(4): Fix 2.5 and 5G speeds reporting and update shared code 2021-09-20 13:43:29 -07:00
if_ixl.c ixl(4): Add support for I710 devices and remove non-inclusive language 2022-10-17 21:19:41 -07:00
ixl.h ixl(4): Report RX errors as sum of all RX error counters 2021-03-04 17:23:18 -08:00
ixl_debug.h
ixl_iw.c ixl(4): Fix VLAN HW filtering 2021-03-04 17:23:18 -08:00
ixl_iw.h
ixl_iw_int.h
ixl_pf.h ixl(4): Remove unused function declaration 2022-03-07 16:00:41 -08:00
ixl_pf_i2c.c
ixl_pf_iflib.c ixl(4): Fix reporting of unqualified transceivers 2021-09-20 13:42:55 -07:00
ixl_pf_iov.c ixl(4): Fix VLAN HW filtering 2021-03-04 17:23:18 -08:00
ixl_pf_iov.h
ixl_pf_main.c ixl(4): Fix SR-IOV panics 2022-10-17 21:19:41 -07:00
ixl_pf_qmgr.c
ixl_pf_qmgr.h
ixl_txrx.c net: iflib: fix vlan processing in the drivers 2022-01-27 22:39:09 +00:00
virtchnl.h