]> asedeno.scripts.mit.edu Git - linux.git/commit
i40e/i40evf: Use ring pointers to clean up _set_itr_per_queue
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 27 Dec 2017 13:15:51 +0000 (08:15 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 26 Jan 2018 21:23:07 +0000 (13:23 -0800)
commitb5b5f370886d3331700b048a0b0ac0399f7ebed5
treedf7cddbde9e3042372c38fae79b8fd345f7211e1
parente0f60a815cb3505c37620048568553f82ee159ba
i40e/i40evf: Use ring pointers to clean up _set_itr_per_queue

This change cleans up the i40e/i40evf_set_itr_per_queue function by
dropping all the unneeded pointer chases. Instead we can just pull out the
pointers for the Tx and Rx rings and use them throughout the function.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c