i40e/i40evf: Use ring pointers to clean up _set_itr_per_queue
authorAlexander Duyck <[email protected]>
Wed, 27 Dec 2017 13:15:51 +0000 (08:15 -0500)
committerJeff Kirsher <[email protected]>
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 <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c