sfc: Feed GRO result into RX allocation policy and interrupt moderation
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 29 Oct 2009 07:21:24 +0000 (07:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2009 04:37:06 +0000 (21:37 -0700)
commit18e1d2beb6c2307d3cab7ecb44fd3d4382adcf6a
tree4d1279868352923fdf7fcf27176896f4d96d7cb0
parentc7c4b3b6e976b95facbb723951bdcd554a3530a4
sfc: Feed GRO result into RX allocation policy and interrupt moderation

When GRO is successfully merging received packets, we should allocate
raw page buffers rather than skbs that will be discarded by GRO.
Otherwise, we should allocate skbs.

GRO also benefits from higher interrupt moderation, so increase the
score for mergeable RX packets.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/rx.c