summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_adminq.h
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2014-11-08 01:39:51 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-11-20 14:39:10 -0800
commit6622402a72580afee68e961e37020894dedbecb6 (patch)
tree3e8f7a5622e13bfdeb50d004dcf87a25eeda3902 /drivers/net/ethernet/intel/i40e/i40e_adminq.h
parentbad17234ba702a50aeec50ab04724ee58af89607 (diff)
ixgbevf: compare total_rx_packets and budget in ixgbevf_clean_rx_irq
total_rx_packets is the number of packets we had cleaned, and budget is the total number of packets that we could clean per poll. Instead of altering both of these values we can save ourselves one write to memory by just comparing total_rx_packets to the budget and as long as we are less than budget we continue cleaning. Also change the do{}while logic to while{} in order to avoid processing packets when budget is 0. CC: Alexander Duyck <alexander.h.duyck@redhat.com> Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_adminq.h')
0 files changed, 0 insertions, 0 deletions