[Intel-wired-lan] [next PATCH S85-V1 11/14] i40e/i40evf: Use usec value instead of reg value for ITR defines

Bowers, AndrewX andrewx.bowers at intel.com
Fri Jan 5 19:30:51 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, December 29, 2017 5:51 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S85-V1 11/14] i40e/i40evf: Use usec
> value instead of reg value for ITR defines
> 
> From: Alexander Duyck <alexander.h.duyck at intel.com>
> 
> Instead of using the register value for the defines when setting up the ring
> ITR we can just use the actual values and avoid the use of shifts and macros
> to translate between the values we have and the values we want.
> 
> This helps to make the code more readable as we can quickly translate from
> one value to the other.
> 
> Signed-off-by: Alexander Duyck <alexander.h.duyck at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_ethtool.c     | 12 +++---
>  drivers/net/ethernet/intel/i40e/i40e_txrx.c        | 11 +++++-
>  drivers/net/ethernet/intel/i40e/i40e_txrx.h        | 45 ++++++++++++----------
>  drivers/net/ethernet/intel/i40evf/i40e_txrx.c      | 11 +++++-
>  drivers/net/ethernet/intel/i40evf/i40e_txrx.h      | 44 +++++++++++----------
>  drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c | 12 +++---
>  6 files changed, 79 insertions(+), 56 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list