Skip to content
Snippets Groups Projects
user avatar
Stephen Hemminger authored
By rounding up the buffer size to power of 2, several expensive
modulus operations can be avoided.  This patch also solves a bug where
the gap need when ring gets full was not being accounted for.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
f81074f8
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.