linux/drivers/net/ethernet/intel/ice
Jesse Brandeburg 2aa469e6cd ice: add missing checks for PF vsi type
[ Upstream commit 6a8d013e90 ]

There were a few places we had missed checking the VSI type to make sure
it was definitely a PF VSI, before calling setup functions intended only
for the PF VSI.

This doesn't fix any explicit bugs but cleans up the code in a few
places and removes one explicit != vsi->type check that can be
superseded by this code (it's a super set)

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:33:50 +01:00
..
ice_adminq_cmd.h ice: Add additional flags to ice_nvm_write_activate 2022-08-24 08:45:54 -07:00
ice_arfs.c
ice_arfs.h
ice_base.c ice: Fix spurious interrupt during removal of trusted VF 2022-11-09 13:20:38 -08:00
ice_base.h
ice_cgu_regs.h
ice_common.c ice: support features on new E810T variants 2022-09-28 11:40:57 -07:00
ice_common.h ice: Add port option admin queue commands 2022-08-24 08:45:53 -07:00
ice_controlq.c
ice_controlq.h
ice_dcb_lib.c ice: Prevent set_channel from changing queues while RDMA active 2023-02-09 11:28:04 +01:00
ice_dcb_lib.h ice: Prevent set_channel from changing queues while RDMA active 2023-02-09 11:28:04 +01:00
ice_dcb_nl.c
ice_dcb_nl.h
ice_dcb.c
ice_dcb.h
ice_devids.h ice: support features on new E810T variants 2022-09-28 11:40:57 -07:00
ice_devlink.c ice: Implement devlink port split operations 2022-08-24 08:45:55 -07:00
ice_devlink.h
ice_eswitch.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ice_eswitch.h
ice_ethtool_fdir.c
ice_ethtool.c ice: Prevent set_channel from changing queues while RDMA active 2023-02-09 11:28:04 +01:00
ice_fdir.c
ice_fdir.h
ice_flex_pipe.c
ice_flex_pipe.h
ice_flex_type.h
ice_flow.c
ice_flow.h
ice_fltr.c ice: Ignore error message when setting same promiscuous mode 2022-08-17 09:30:44 -07:00
ice_fltr.h
ice_fw_update.c
ice_fw_update.h
ice_gnss.c ice: Add check for kzalloc 2023-01-18 11:58:27 +01:00
ice_gnss.h
ice_hw_autogen.h
ice_idc_int.h
ice_idc.c
ice_lag.c ice: remove non-inclusive language 2022-08-18 08:26:11 -07:00
ice_lag.h ice: remove non-inclusive language 2022-08-18 08:26:11 -07:00
ice_lan_tx_rx.h
ice_lib.c ice: Fix spurious interrupt during removal of trusted VF 2022-11-09 13:20:38 -08:00
ice_lib.h ice: Fix spurious interrupt during removal of trusted VF 2022-11-09 13:20:38 -08:00
ice_main.c ice: add missing checks for PF vsi type 2023-03-10 09:33:50 +01:00
ice_nvm.c ice: Add additional flags to ice_nvm_write_activate 2022-08-24 08:45:54 -07:00
ice_nvm.h ice: Add additional flags to ice_nvm_write_activate 2022-08-24 08:45:54 -07:00
ice_osdep.h
ice_pf_vsi_vlan_ops.c
ice_pf_vsi_vlan_ops.h
ice_protocol_type.h ice: Add L2TPv3 hardware offload support 2022-09-20 09:13:38 +02:00
ice_ptp_consts.h
ice_ptp_hw.c ice: Add low latency Tx timestamp read 2022-09-20 16:14:28 -07:00
ice_ptp_hw.h ice: Add low latency Tx timestamp read 2022-09-20 16:14:28 -07:00
ice_ptp.c ice: restrict PTP HW clock freq adjustments to 100, 000, 000 PPB 2023-03-10 09:33:49 +01:00
ice_ptp.h ice: Merge pin initialization of E810 and E810T adapters 2022-09-28 11:40:57 -07:00
ice_repr.c ice: reorder PF/representor devlink port register/unregister flows 2022-09-27 07:54:45 -07:00
ice_repr.h
ice_sbq_cmd.h
ice_sched.c ice: Simplify memory allocation in ice_sched_init_port() 2022-09-06 13:55:47 -07:00
ice_sched.h
ice_sriov.c
ice_sriov.h
ice_switch.c ice: switch: fix potential memleak in ice_add_adv_recipe() 2023-02-14 19:11:46 +01:00
ice_switch.h
ice_tc_lib.c ice: Add support for VLAN priority filters in switchdev 2022-09-28 11:40:57 -07:00
ice_tc_lib.h ice: Add support for VLAN priority filters in switchdev 2022-09-28 11:40:57 -07:00
ice_trace.h
ice_txrx_lib.c
ice_txrx_lib.h
ice_txrx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-29 14:30:51 -07:00
ice_txrx.h ice: Implement control of FCS/CRC stripping 2022-08-18 08:08:23 -07:00
ice_type.h ice: Add low latency Tx timestamp read 2022-09-20 16:14:28 -07:00
ice_vf_lib_private.h
ice_vf_lib.c ice: Fix spurious interrupt during removal of trusted VF 2022-11-09 13:20:38 -08:00
ice_vf_lib.h
ice_vf_mbx.c
ice_vf_mbx.h
ice_vf_vsi_vlan_ops.c ice: Fix disabling Rx VLAN filtering with port VLAN enabled 2023-02-14 19:11:46 +01:00
ice_vf_vsi_vlan_ops.h
ice_virtchnl_allowlist.c
ice_virtchnl_allowlist.h
ice_virtchnl_fdir.c
ice_virtchnl_fdir.h
ice_virtchnl.c ice: Fix VF not able to send tagged traffic with no VLAN filters 2022-08-17 09:30:44 -07:00
ice_virtchnl.h
ice_vlan_mode.c
ice_vlan_mode.h
ice_vlan.h
ice_vsi_vlan_lib.c
ice_vsi_vlan_lib.h
ice_vsi_vlan_ops.c
ice_vsi_vlan_ops.h
ice_xsk.c ice: xsk: Fix cleaning of XDP_TX frames 2023-02-22 12:59:52 +01:00
ice_xsk.h ice: xsk: change batched Tx descriptor cleaning 2022-09-27 08:11:02 -07:00
ice.h ice: Prevent set_channel from changing queues while RDMA active 2023-02-09 11:28:04 +01:00
Makefile