diff options
author | 2019-11-06 02:05:31 -0800 | |
---|---|---|
committer | 2019-11-08 12:02:46 -0800 | |
commit | c0a3665f71a2f086800abea4d9d14d28269089d6 (patch) | |
tree | 3adbb37620dab4bf330f50e47224eac4f9697727 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ice: avoid setting features during reset (diff) | |
download | linux-dev-c0a3665f71a2f086800abea4d9d14d28269089d6.tar.xz linux-dev-c0a3665f71a2f086800abea4d9d14d28269089d6.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions