]> git.karo-electronics.de Git - linux-beck.git/commit
sky2: rx allocation threshold change
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 28 Nov 2007 22:50:16 +0000 (14:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:04:19 +0000 (15:04 -0800)
commit5f06eba4dce361bfc077868d044768476b41d698
treefd3522e31b06bae67609b9088231b82200834316
parentf03b865491c2f30f2a4d77cdafc69c978ceb38a0
sky2: rx allocation threshold change

When using larger MTU's sky2 driver changes from allocating one
data area, to using multiple pages. The threshold for this was based on
a heuristic where the cost of a single allocation is bigger than one
page.  Since the allocator has changed, this heuristic is now incorrect;
instead just make the threshold be when the total size of the allocation
is greater than one page.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/sky2.c