linux/drivers/net/ethernet/intel/ice
Brett Creeley e40c899a64 ice: Refactor getting/setting coalesce
Currently if the driver has an uneven amount of Rx/Tx queues
setting the coalesce settings through ethtool will result in
an error. This is happening because in the setting coalesce
flow we are reporting an error if either Rx or Tx fails.

Also, the flow for setting/getting per_q_coalesce and
setting/getting coalesce settings for the entire device
is different.

Fix these issues by adding one function, ice_set_q_coalesce(),
and another, ice_get_q_coalesce(), that both getting/setting
per_q and entire device coalesce can use. This makes handling
the error cases generic between the two flows and simplifies
__ice_set_coalesce() and __ice_get_coalesce().

Also, add a header comment to __ice_set_coalesce().

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-05-04 14:25:26 -07:00
..
ice.h ice: Add more validation in ice_vc_cfg_irq_map_msg 2019-05-04 14:18:27 -07:00
ice_adminq_cmd.h ice: Add 52 byte RSS hash key support 2019-05-02 01:11:47 -07:00
ice_common.c ice: Do not unnecessarily initialize local variable 2019-05-04 14:21:01 -07:00
ice_common.h ice: Create framework for VSI queue context 2019-05-02 00:57:44 -07:00
ice_controlq.c ice: Fix incorrect use of abbreviations 2019-04-18 08:38:47 -07:00
ice_controlq.h
ice_dcb.c ice: Add code to control FW LLDP and DCBX 2019-04-18 08:38:48 -07:00
ice_dcb.h ice: Add code to control FW LLDP and DCBX 2019-04-18 08:38:48 -07:00
ice_dcb_lib.c ice: Add code for DCB rebuild 2019-04-18 08:38:48 -07:00
ice_dcb_lib.h ice: Add code for DCB rebuild 2019-04-18 08:38:48 -07:00
ice_devids.h
ice_ethtool.c ice: Refactor getting/setting coalesce 2019-05-04 14:25:26 -07:00
ice_hw_autogen.h ice: Add more validation in ice_vc_cfg_irq_map_msg 2019-05-04 14:18:27 -07:00
ice_lan_tx_rx.h ice: Fix incorrect use of abbreviations 2019-04-18 08:38:47 -07:00
ice_lib.c ice: Always free/allocate q_vectors 2019-05-04 14:22:55 -07:00
ice_lib.h ice: Add ability to update rx-usecs-high 2019-05-02 01:13:39 -07:00
ice_main.c ice: Fix for allowing too many MDD events on VF 2019-05-04 13:42:53 -07:00
ice_nvm.c ice: Fix incorrect use of abbreviations 2019-04-18 08:38:47 -07:00
ice_osdep.h
ice_sched.c ice: Create framework for VSI queue context 2019-05-02 00:57:44 -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_status.h ice: Add code for DCB initialization part 2/4 2019-04-18 08:38:47 -07:00
ice_switch.c ice: Create framework for VSI queue context 2019-05-02 00:57:44 -07:00
ice_switch.h ice: Create framework for VSI queue context 2019-05-02 00:57:44 -07:00
ice_txrx.c ice: Add reg_idx variable in ice_q_vector structure 2019-05-02 01:21:56 -07:00
ice_txrx.h ice: Add ability to update rx-usecs-high 2019-05-02 01:13:39 -07:00
ice_type.h ice: Add code to get DCB related statistics 2019-04-18 08:38:47 -07:00
ice_virtchnl_pf.c ice: Add more validation in ice_vc_cfg_irq_map_msg 2019-05-04 14:18:27 -07:00
ice_virtchnl_pf.h ice: Fix incorrect use of abbreviations 2019-04-18 08:38:47 -07:00
Makefile ice: Add code for DCB initialization part 1/4 2019-04-18 08:38:47 -07:00