]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix setting coalesce to handle DCB configuration
authorBrett Creeley <brett.creeley@intel.com>
Fri, 8 Nov 2019 14:23:23 +0000 (06:23 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Nov 2019 21:15:04 +0000 (13:15 -0800)
commitdcb0d8794bf6b83bf965c8ec5c88d8c5d0b9f621
treefa0ca381a50a43abcb762b35cbf83324f9b11475
parentede8d357a3b8a08fd1d07e4d60e6304d26e9478e
ice: Fix setting coalesce to handle DCB configuration

Currently there can be a case where a DCB map is applied and there are
more interrupt vectors (vsi->num_q_vectors) than Rx queues (vsi->num_rxq)
and Tx queues (vsi->num_txq). If we try to set coalesce settings in this
case it will report a false failure. Fix this by checking if vector index
is valid with respect to the number of Tx and Rx queues configured.

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_ethtool.c