]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Update fields in ice_vsi_set_num_qs when reconfiguring
authorBrett Creeley <brett.creeley@intel.com>
Thu, 8 Aug 2019 14:39:31 +0000 (07:39 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 5 Sep 2019 15:13:40 +0000 (08:13 -0700)
commit6b1488a85838403fb491d725cb7c862a1ed7143e
treed7e335be8793d43be63d9f7b1ba95b6a97636066
parentee8cd3aa7f5faaab38e886eb8fa5d79fde0a816d
ice: Update fields in ice_vsi_set_num_qs when reconfiguring

Currently when vsi->req_txqs or vsi->req_rxqs are set we don't
correctly set the number of vsi->num_q_vectors. Fix this by
setting the number of queue vectors based on the max
between the vsi->alloc_txqs and vsi->alloc_rxqs.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c