linux/drivers/net/ethernet/intel/ice
Anirudh Venkataramanan ddf30f7ff8 ice: Add handler to configure SR-IOV
This patch implements parts of ice_sriov_configure and VF reset flow.

To create virtual functions (VFs), the user sets a value in num_vfs
through sysfs. This results in the kernel calling the handler for
.sriov_configure which is ice_sriov_configure.

VF setup first starts with a VF reset, followed by allocation of the VF
VSI using ice_vf_vsi_setup. Once the VF setup is complete a state bit
ICE_VF_STATE_INIT is set in the vf->states bitmap to indicate that
the VF is ready to go.

Also for VF reset to go into effect, it's necessary to issue a disable
queue command (ice_aqc_opc_dis_txqs). So this patch updates multiple
functions in the disable queue flow to take additional parameters that
distinguish if queues are being disabled due to VF reset.

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-10-03 07:42:29 -07:00
..
Makefile ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice.h ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_adminq_cmd.h ice: Add support to detect SR-IOV capability and mailbox queues 2018-10-03 07:42:29 -07:00
ice_common.c ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_common.h ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_controlq.c ice: Add support to detect SR-IOV capability and mailbox queues 2018-10-03 07:42:29 -07:00
ice_controlq.h ice: Add support to detect SR-IOV capability and mailbox queues 2018-10-03 07:42:29 -07:00
ice_devids.h ice: update branding strings and supported device ids 2018-09-28 11:16:36 -07:00
ice_ethtool.c ice: fix changing of ring descriptor size (ethtool -G) 2018-09-28 11:16:36 -07:00
ice_hw_autogen.h ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_lan_tx_rx.h ice: Rework flex descriptor programming 2018-08-28 09:18:47 -07:00
ice_lib.c ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_lib.h ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_main.c ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_nvm.c ice: Update request resource command to latest specification 2018-08-28 10:17:06 -07:00
ice_osdep.h ice: Start hardware initialization 2018-03-26 09:59:08 -07:00
ice_sched.c ice: Expand use of VSI handles part 2/2 2018-10-02 07:13:23 -07:00
ice_sched.h ice: Expand use of VSI handles part 2/2 2018-10-02 07:13:23 -07:00
ice_status.h ice: Prevent control queue operations during reset 2018-08-28 10:20:00 -07:00
ice_switch.c ice: Implement VSI replay framework 2018-10-02 07:14:23 -07:00
ice_switch.h ice: Implement VSI replay framework 2018-10-02 07:14:23 -07:00
ice_txrx.c ice: Add support for Tx hang, Tx timeout and malicious driver detection 2018-08-28 10:58:42 -07:00
ice_txrx.h ice: Add support for dynamic interrupt moderation 2018-10-02 07:19:30 -07:00
ice_type.h ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_virtchnl_pf.c ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00
ice_virtchnl_pf.h ice: Add handler to configure SR-IOV 2018-10-03 07:42:29 -07:00