linux_dsm_epyc7002/drivers/net/ethernet/intel
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
..
e1000 net: move skb->xmit_more hint to softnet data 2019-04-01 18:35:02 -07:00
e1000e net: move skb->xmit_more hint to softnet data 2019-04-01 18:35:02 -07:00
fm10k net: pass net_device argument to the eth_get_headlen 2019-04-23 18:36:34 +02:00
i40e i40e: Introduce recovery mode support 2019-05-03 14:34:01 -07:00
iavf net: pass net_device argument to the eth_get_headlen 2019-04-23 18:36:34 +02:00
ice ice: Refactor getting/setting coalesce 2019-05-04 14:25:26 -07:00
igb net: pass net_device argument to the eth_get_headlen 2019-04-23 18:36:34 +02:00
igbvf ethernet/intel: consolidate NAPI and NAPI exit 2018-11-21 10:35:23 -08:00
igc net: pass net_device argument to the eth_get_headlen 2019-04-23 18:36:34 +02:00
ixgb cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
ixgbe net: pass net_device argument to the eth_get_headlen 2019-04-23 18:36:34 +02:00
ixgbevf net: pass net_device argument to the eth_get_headlen 2019-04-23 18:36:34 +02:00
e100.c intel: correct return from set features callback 2019-03-19 14:18:49 -07:00
Kconfig ixgbe: fix Kconfig when driver is not a module 2019-01-04 14:02:16 -08:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00