]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: simplify txd use count calculation
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 8 Nov 2016 21:05:14 +0000 (13:05 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:41:31 +0000 (19:41 -0500)
commitd080235a8b6ae85cb460feaf0182c015a6df2458
tree0243c029f154bc759bdf98f6f7eb0ae0e6ac6f2b
parenta0aaa9f7a64d69064f0340b9d68c96d668f85483
i40e: simplify txd use count calculation

Orabug: 24568124

The i40e_txd_use_count function was fast but confusing. In the comments,
it even admits that it's ugly. So replace it with a new function that is
(very) slightly faster and has extensive commenting to help the thicker
among us (including the author, who will forget in a week) understand
how it works.

Change-ID: Ifb533f13786a0bf39cb29f77969a5be2c83d9a87
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
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>
(cherry picked from commit 4293d5f528b5a0a1b0c1b0c6eb522366822a965a)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.h