]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Replace LRO with GRO
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Jan 2009 05:50:16 +0000 (21:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jan 2009 22:34:06 +0000 (14:34 -0800)
commit03462a8c5fb4d0bc9297d08e58909da74e340788
treec59b6bec9e78c66c7fc5ceb0ee0288965ee7f47a
parentb2833b70b1c86e67f9e6c8c893846ba9ffa5c6b0
sfc: Replace LRO with GRO

This patch makes sfc invoke the GRO hooks instead of LRO.  As
GRO has a compatible external interface to LRO this is a very
straightforward replacement.

Everything should appear identical to the user except that the
offload is now controlled by the GRO ethtool option instead of
LRO.  I've kept the lro module parameter as is since that's for
compatibility only.

I have eliminated efx_rx_mk_skb as the GRO layer can take care
of all packets regardless of whether GRO is enabled or not.

So the only case where we don't call GRO is if the packet checksum
is absent.  This is to keep the behaviour changes of the patch to
a minimum.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/Kconfig
drivers/net/sfc/efx.c
drivers/net/sfc/net_driver.h
drivers/net/sfc/rx.c
drivers/net/sfc/rx.h
drivers/net/sfc/sfe4001.c
drivers/net/sfc/tenxpress.c