All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH net 01/13] ice: Fix allowing VF to request more/less queues via virtchnl
@ 2021-02-26 21:19 Tony Nguyen
  2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 02/13] ice: Fix VFR issues for AVF drivers that expect ATQLEN cleared Tony Nguyen
                   ` (12 more replies)
  0 siblings, 13 replies; 25+ messages in thread
From: Tony Nguyen @ 2021-02-26 21:19 UTC (permalink / raw)
  To: intel-wired-lan

From: Brett Creeley <brett.creeley@intel.com>

Commit 12bb018c538c ("ice: Refactor VF reset") caused a regression
that removes the ability for a VF to request a different amount of
queues via VIRTCHNL_OP_REQUEST_QUEUES. This prevents VF drivers to
either increase or decrease the number of queue pairs they are
allocated. Fix this by using the variable vf->num_req_qs when
determining the vf->num_vf_qs during VF VSI creation.

Fixes: 12bb018c538c ("ice: Refactor VF reset")
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_lib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c
index 8d4e2ad4328d..116f8556f4a8 100644
--- a/drivers/net/ethernet/intel/ice/ice_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_lib.c
@@ -192,6 +192,8 @@ static void ice_vsi_set_num_qs(struct ice_vsi *vsi, u16 vf_id)
 		break;
 	case ICE_VSI_VF:
 		vf = &pf->vf[vsi->vf_id];
+		if (vf->num_req_qs)
+			vf->num_vf_qs = vf->num_req_qs;
 		vsi->alloc_txq = vf->num_vf_qs;
 		vsi->alloc_rxq = vf->num_vf_qs;
 		/* pf->num_msix_per_vf includes (VF miscellaneous vector +
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2021-04-21 19:18 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26 21:19 [Intel-wired-lan] [PATCH net 01/13] ice: Fix allowing VF to request more/less queues via virtchnl Tony Nguyen
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 02/13] ice: Fix VFR issues for AVF drivers that expect ATQLEN cleared Tony Nguyen
2021-04-21 19:18   ` Jankowski, Konrad0
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 03/13] ice: Continue probe on link/PHY errors Tony Nguyen
2021-03-10 21:14   ` Brelinski, TonyX
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 04/13] ice: Fix VF true promiscuous mode Tony Nguyen
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 05/13] ice: Increase control queue timeout Tony Nguyen
2021-03-09 23:45   ` Brelinski, TonyX
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 06/13] ice: Recognize 860 as iSCSI port in CEE mode Tony Nguyen
2021-03-23 22:41   ` Brelinski, TonyX
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 07/13] ice: prevent ice_open and ice_stop during reset Tony Nguyen
2021-03-11 22:50   ` Brelinski, TonyX
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 08/13] ice: fix memory allocation call Tony Nguyen
2021-03-09 23:47   ` Brelinski, TonyX
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 09/13] ice: remove DCBNL_DEVRESET bit from PF state Tony Nguyen
2021-03-22 23:58   ` Brelinski, TonyX
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 10/13] ice: Fix for dereference of NULL pointer Tony Nguyen
2021-03-09 23:49   ` Brelinski, TonyX
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 11/13] ice: Use port number instead of PF ID for WoL Tony Nguyen
2021-03-10 23:06   ` Brelinski, TonyX
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 12/13] ice: handle the VF VSI rebuild failure Tony Nguyen
2021-04-21 19:17   ` Jankowski, Konrad0
2021-02-26 21:19 ` [Intel-wired-lan] [PATCH net 13/13] ice: Cleanup fltr list in case of allocation issues Tony Nguyen
2021-03-09 23:51   ` Brelinski, TonyX
2021-04-19 19:21 ` [Intel-wired-lan] [PATCH net 01/13] ice: Fix allowing VF to request more/less queues via virtchnl Jankowski, Konrad0

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.