diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2016-11-08 13:05:14 -0800 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-12-06 20:40:50 -0800 |
commit | 4293d5f528b5a0a1b0c1b0c6eb522366822a965a (patch) | |
tree | d92287000acfb297f751aab0a6156595124663d9 /drivers/net/ethernet/mellanox/Kconfig | |
parent | 7ec9ba11b046b4b7fd768c366870ada60d409295 (diff) |
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 'drivers/net/ethernet/mellanox/Kconfig')
0 files changed, 0 insertions, 0 deletions