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 ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
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 ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
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 ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
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 ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_hmc.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
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 ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
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 ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
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 iavf(4): Finish rename/rebrand internally 2018-10-15 17:23:41 +00:00
ixl_iw.c ixl(4): Fix VLAN HW filtering 2021-03-04 17:23:18 -08:00
ixl_iw.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
ixl_iw_int.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
ixl_pf.h ixl(4): Remove unused function declaration 2022-03-07 16:00:41 -08:00
ixl_pf_i2c.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
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/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_pf_main.c ixl(4): Fix SR-IOV panics 2022-10-17 21:19:41 -07:00
ixl_pf_qmgr.c ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_pf_qmgr.h ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_txrx.c net: iflib: fix vlan processing in the drivers 2022-01-27 22:39:09 +00:00
virtchnl.h ixl(4): Add support for X710-T*L devices 2020-09-01 23:16:38 +00:00