linux/drivers/net/ethernet/intel/ice
Maciej Fijalkowski d02f734cb7 ice: add support for enabling/disabling single queues
Refactor the queue handling functions that are going through queue
arrays in a way that the logic done for a single queue is pulled out and
it will be called for each ring when traversing ring array. This implies
that when disabling Tx rings we won't fill up q_ids, q_teids and
q_handles arrays.  Drop also 'offset' parameter; the value from vsi's
txq_map is stored in ring->reg_idx and that drops the need for mentioned
parameter. Introduce the ice_vsi_cfg_txq, ice_vsi_stop_tx_ring and
ice_vsi_ctrl_rx_ring that are the functions with pulled out logic.

There's several Tx queue meta data (q_id, q_handle, q_teid and other)
that need to be set up during Tx queue disablement, so let's as well add
a helper structure that wraps it up and a function that will be filling
it up.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-08-26 23:33:40 -07:00
..
ice_adminq_cmd.h ice: silence some bogus error messages 2019-08-23 10:20:32 -07:00
ice_common.c ice: shorten local and add debug prints 2019-08-26 23:09:46 -07:00
ice_common.h ice: separate out control queue lock creation 2019-07-31 10:23:04 -07:00
ice_controlq.c ice: separate out control queue lock creation 2019-07-31 10:23:04 -07:00
ice_controlq.h ice: Trivial cosmetic changes 2019-05-30 10:57:55 -07:00
ice_dcb_lib.c ice: Fix ethtool port and PFC stats for 4x25G cards 2019-08-26 22:54:12 -07:00
ice_dcb_lib.h ice: Fix hang when ethtool disables FW LLDP 2019-05-23 10:51:53 -07:00
ice_dcb.c ice: Treat DCBx state NOT_STARTED as valid 2019-08-23 09:55:55 -07:00
ice_dcb.h ice: Refactor the LLDP MIB change event handling 2019-05-23 10:51:53 -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: update ethtool stats on-demand 2019-08-23 10:34:27 -07:00
ice_hw_autogen.h ice: Set WB_ON_ITR when we don't re-enable interrupts 2019-08-20 14:21:21 -07:00
ice_lan_tx_rx.h ice: Always set prefena when configuring an Rx queue 2019-07-31 10:23:04 -07:00
ice_lib.c ice: add support for enabling/disabling single queues 2019-08-26 23:33:40 -07:00
ice_lib.h ice: add support for enabling/disabling single queues 2019-08-26 23:33:40 -07:00
ice_main.c ice: fix potential infinite loop 2019-08-26 23:30:26 -07: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: added sibling head to parse nodes 2019-08-26 22:59:00 -07: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: Don't allow VSI to remove unassociated ucast filter 2019-08-23 10:51:46 -07:00
ice_switch.h ice: Minor cleanup in ice_switch.h 2019-05-29 02:55:34 -07:00
ice_txrx.c ice: Allow egress control packets from PF_VSI 2019-08-23 09:17:45 -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: fix ice_is_tc_ena 2019-08-26 23:27:10 -07:00
ice_virtchnl_pf.c ice: add validation in OP_CONFIG_VSI_QUEUES VF message 2019-08-26 23:25:14 -07:00
ice_virtchnl_pf.h ice: Don't clog kernel debug log with VF MDD events errors 2019-08-26 23:21:28 -07:00
ice.h ice: update ethtool stats on-demand 2019-08-23 10:34:27 -07:00
Makefile ice: Add code for DCB initialization part 1/4 2019-04-18 08:38:47 -07:00