From: Daniel Pieczko Date: Wed, 13 Feb 2013 10:54:41 +0000 (+0000) Subject: sfc: allocate more RX buffers per page X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~507^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1648a23fa159e5c433aac06dc5e0d9db36146016;p=pandora-kernel.git 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 --- Reading git-diff-tree failed