diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-01-19 06:50:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 23:34:06 +0100 |
commit | da3bc07171dff957906cbe2ad5abb443eccf57c4 (patch) | |
tree | c59b6bec9e78c66c7fc5ceb0ee0288965ee7f47a /drivers/net/sfc/sfe4001.c | |
parent | ixgbe: Replace LRO with GRO (diff) | |
download | linux-da3bc07171dff957906cbe2ad5abb443eccf57c4.tar.xz linux-da3bc07171dff957906cbe2ad5abb443eccf57c4.zip |
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>
Diffstat (limited to 'drivers/net/sfc/sfe4001.c')
-rw-r--r-- | drivers/net/sfc/sfe4001.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/sfc/sfe4001.c b/drivers/net/sfc/sfe4001.c index 16b80acb9992..d21d014bf0c1 100644 --- a/drivers/net/sfc/sfe4001.c +++ b/drivers/net/sfc/sfe4001.c @@ -24,6 +24,7 @@ */ #include <linux/delay.h> +#include <linux/rtnetlink.h> #include "net_driver.h" #include "efx.h" #include "phy.h" |