summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDaniel Pieczko <dpieczko@solarflare.com>2013-02-13 10:54:41 (GMT)
committerBen Hutchings <bhutchings@solarflare.com>2013-03-07 20:22:15 (GMT)
commit1648a23fa159e5c433aac06dc5e0d9db36146016 (patch)
treec60a40e25d368f34e73b6abffa9a62a890dc9bbf /net
parent179ea7f039f68ae4247a340bfb59fd861e7def12 (diff)
downloadlinux-1648a23fa159e5c433aac06dc5e0d9db36146016.tar.xz
sfc: allocate more RX buffers per page
Allocating 2 buffers per page is insanely inefficient when MTU is 1500 and PAGE_SIZE is 64K (as it usually is on POWER). Allocate as many as we can fit, and choose the refill batch size at run-time so that we still always use a whole page at once. [bwh: Fix loop condition to allow for compound pages; rebase] Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions