-
- Downloads
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>
Showing
- drivers/net/ethernet/intel/ice/Makefile 1 addition, 0 deletionsdrivers/net/ethernet/intel/ice/Makefile
- drivers/net/ethernet/intel/ice/ice.h 24 additions, 0 deletionsdrivers/net/ethernet/intel/ice/ice.h
- drivers/net/ethernet/intel/ice/ice_common.c 52 additions, 4 deletionsdrivers/net/ethernet/intel/ice/ice_common.c
- drivers/net/ethernet/intel/ice/ice_common.h 3 additions, 1 deletiondrivers/net/ethernet/intel/ice/ice_common.h
- drivers/net/ethernet/intel/ice/ice_hw_autogen.h 38 additions, 0 deletionsdrivers/net/ethernet/intel/ice/ice_hw_autogen.h
- drivers/net/ethernet/intel/ice/ice_lib.c 5 additions, 2 deletionsdrivers/net/ethernet/intel/ice/ice_lib.c
- drivers/net/ethernet/intel/ice/ice_lib.h 2 additions, 1 deletiondrivers/net/ethernet/intel/ice/ice_lib.h
- drivers/net/ethernet/intel/ice/ice_main.c 5 additions, 1 deletiondrivers/net/ethernet/intel/ice/ice_main.c
- drivers/net/ethernet/intel/ice/ice_type.h 10 additions, 0 deletionsdrivers/net/ethernet/intel/ice/ice_type.h
- drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c 847 additions, 0 deletionsdrivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
- drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h 74 additions, 0 deletionsdrivers/net/ethernet/intel/ice/ice_virtchnl_pf.h
Loading
Please register or sign in to comment