]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Do not decrement budget in ixgbe_clean_rx_irq
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 25 Sep 2012 00:29:37 +0000 (00:29 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 30 Oct 2012 05:32:11 +0000 (22:32 -0700)
commitee3688731cb091d252e6ce066ae4863a6000d63c
tree5d0b5ecbf6239ff80d44dca91f73864df4a6c21c
parent2793cb0f7da0b96d277c7339ffd03a746624e080
ixgbe: Do not decrement budget in ixgbe_clean_rx_irq

This change makes it so that compare the total_rx_packets cleaned to budget
instead of decrementing budget.  The advantage to this approach is that budget
can now be const and we only end up modifying total_rx_packets instead of
modifying both it and budget.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c