aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_txrx.c
diff options
context:
space:
mode:
authorBrett Creeley <brett.creeley@intel.com>2019-04-16 10:21:20 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-05-04 14:25:26 -0700
commite40c899a64ca6222ea45a045b2d7a09491274163 (patch)
tree12d3d30103660130616eb389d9b056167d06b8a7 /drivers/net/ethernet/intel/ice/ice_txrx.c
parentice: Always free/allocate q_vectors (diff)
downloadlinux-dev-e40c899a64ca6222ea45a045b2d7a09491274163.tar.xz
linux-dev-e40c899a64ca6222ea45a045b2d7a09491274163.zip
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_txrx.c')
0 files changed, 0 insertions, 0 deletions