1
0
Fork 0
alistair23-linux/drivers/net/ethernet/intel/ice
Usha Ketineni bcd4bbf995 ice: Fix to change Rx/Tx ring descriptor size via ethtool with DCBx
[ Upstream commit c0a3665f71 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:17:16 +02:00
..
Makefile ice: Implement Dynamic Device Personalization (DDP) download 2019-09-12 11:19:16 -07:00
ice.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_adminq_cmd.h ice: Implement Dynamic Device Personalization (DDP) download 2019-09-12 11:19:16 -07:00
ice_common.c ice: Fix memory leak 2020-06-22 09:30:56 +02:00
ice_common.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_controlq.c ice: Fix for memory leaks and modify ICE_FREE_CQ_BUFS 2020-06-22 09:30:56 +02:00
ice_controlq.h ice: delay less 2019-12-31 16:45:12 +01:00
ice_dcb.c ice: Allow for delayed LLDP MIB change registration 2019-09-05 08:13:41 -07:00
ice_dcb.h ice: Allow for delayed LLDP MIB change registration 2019-09-05 08:13:41 -07:00
ice_dcb_lib.c ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_dcb_lib.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_devids.h ice: Change device ID define names to align with branding string 2018-10-24 13:53:30 -07:00
ice_ethtool.c ice: Fix to change Rx/Tx ring descriptor size via ethtool with DCBx 2020-10-01 13:17:16 +02:00
ice_flex_pipe.c ice: Graceful error handling in HW table calloc failure 2020-08-19 08:16:19 +02:00
ice_flex_pipe.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_flex_type.h ice: Initialize DDP package structures 2019-09-12 11:28:40 -07:00
ice_hw_autogen.h ice: update Unit Load Status bitmask to check after reset 2020-03-05 16:43:40 +01:00
ice_lan_tx_rx.h ice: update Tx context struct 2019-09-05 08:13:41 -07:00
ice_lib.c ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_lib.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_main.c ice: fix potential double free in probe unrolling 2020-06-22 09:31:10 +02:00
ice_nvm.c ice: Add handler for ethtool selftest 2019-05-29 02:44:12 -07:00
ice_osdep.h ice: Start hardware initialization 2018-03-26 09:59:08 -07:00
ice_sched.c ice: fix potential infinite loop because loop counter being too small 2019-11-08 16:10:51 -08:00
ice_sched.h ice: Add code for DCB initialization part 3/4 2019-04-18 08:38:47 -07:00
ice_sriov.c ice: Add support for new PHY types 2019-01-15 12:38:44 -08:00
ice_sriov.h ice: Add handlers for VF netdevice operations 2018-10-03 07:42:30 -07:00
ice_status.h ice: Add handler for ethtool selftest 2019-05-29 02:44:12 -07:00
ice_switch.c ice: Fix resource leak in ice_remove_rule_internal() 2019-09-03 16:08:54 -07:00
ice_switch.h ice: Minor cleanup in ice_switch.h 2019-05-29 02:55:34 -07:00
ice_txrx.c ice: small efficiency fixes 2019-09-05 08:13:40 -07:00
ice_txrx.h ice: Set WB_ON_ITR when we don't re-enable interrupts 2019-08-20 14:21:21 -07:00
ice_type.h ice: Implement Dynamic Device Personalization (DDP) download 2019-09-12 11:19:16 -07:00
ice_virtchnl_pf.c ice: fix stack leakage 2020-01-26 10:01:01 +01:00
ice_virtchnl_pf.h ice: add support for virtchnl_queue_select.[tx|rx]_queues bitmap 2019-08-26 23:37:16 -07:00