summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2017-11-22 10:56:46 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-01-09 08:50:17 -0800
commit1489542b9c750cfa39664a6ae37c9ac622b70d24 (patch)
treeeebe64b4396204cf1b996e25ffb7848494491223 /drivers/net/hyperv
parent4e039c1675d4ecfb8ef25a20ac686b38490b36fd (diff)
downloadlinux-1489542b9c750cfa39664a6ae37c9ac622b70d24.tar.bz2
ixgbe: Use ring values to test for Tx pending
This patch simplifies the check for Tx pending traffic and makes it more holistic as there being any difference between next_to_use and next_to_clean is much more informative than if head and tail are equal, as it is possible for us to either not update tail, or not be notified of completed work in which case next_to_clean would not be equal to head. In addition the simplification makes it so that we don't have to read hardware which allows us to drop a number of variables that were previously being used in the call. 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/hyperv')
0 files changed, 0 insertions, 0 deletions