lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 21 Nov 2014 11:07:49 +0000
From:	David Laight <David.Laight@...LAB.COM>
To:	'Jeff Kirsher' <>,
	"" <>
CC:	Emil Tantilov <>,
	"" <>,
	"" <>,
	"" <>,
	"" <>,
	Alexander Duyck <>
Subject: RE: [net-next v2 08/15] ixgbevf: compare total_rx_packets and
 budget in ixgbevf_clean_rx_irq

From: Jeff Kirsher
> From: Emil Tantilov <>
> 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.

Does it matter if one packet is processed when budget is zero?
The 'do {} while ();' version will generate better code.


To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists