diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2016-11-09 00:05:14 +0300 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-12-07 07:40:50 +0300 |
commit | 4293d5f528b5a0a1b0c1b0c6eb522366822a965a (patch) | |
tree | d92287000acfb297f751aab0a6156595124663d9 /mm/quicklist.c | |
parent | 7ec9ba11b046b4b7fd768c366870ada60d409295 (diff) | |
download | linux-4293d5f528b5a0a1b0c1b0c6eb522366822a965a.tar.xz |
i40e: simplify txd use count calculation
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>
Diffstat (limited to 'mm/quicklist.c')
0 files changed, 0 insertions, 0 deletions