diff options
author | Usha Ketineni <usha.k.ketineni@intel.com> | 2019-11-06 13:05:31 +0300 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-11-08 23:02:46 +0300 |
commit | c0a3665f71a2f086800abea4d9d14d28269089d6 (patch) | |
tree | 3adbb37620dab4bf330f50e47224eac4f9697727 /drivers/net/ethernet/intel/ice/ice_dcb_lib.c | |
parent | 5f8cc355c4134767aa586920458cc21e01295715 (diff) | |
download | linux-c0a3665f71a2f086800abea4d9d14d28269089d6.tar.xz |
ice: Fix to change Rx/Tx ring descriptor size via ethtool with DCBx
This patch fixes the call trace caused by the kernel when the Rx/Tx
descriptor size change request is initiated via ethtool when DCB is
configured. ice_set_ringparam() should use vsi->num_txq instead of
vsi->alloc_txq as it represents the queues that are enabled in the
driver when DCB is enabled/disabled. Otherwise, queue index being
used can go out of range.
For example, when vsi->alloc_txq has 104 queues and with 3 TCS enabled
via DCB, each TC gets 34 queues, vsi->num_txq will be 102 and only 102
queues will be enabled.
Signed-off-by: Usha Ketineni <usha.k.ketineni@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_dcb_lib.c')
0 files changed, 0 insertions, 0 deletions