netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [0/8] net: Generic Receive Offload
@ 2008-12-12  5:31 Herbert Xu
  2008-12-12  5:31 ` [PATCH 1/8] net: Add frag_list support to skb_segment Herbert Xu
                   ` (8 more replies)
  0 siblings, 9 replies; 61+ messages in thread
From: Herbert Xu @ 2008-12-12  5:31 UTC (permalink / raw)
  To: David S. Miller, netdev

Hi:

This patch series introduces the Generic Receive Offload system.  Just
as GSO generalised TSO, GRO does the same thing for LRO.  Most of the
technical details are pulled straight out of LRO, although there is no
code shared between them.

For the moment, GRO is actually more stringent than LRO, meaning that
the set of packets that it merges is strictless less than LRO.  However,
I don't anticipate this to be a huge issue as testing shows that most
packets that are worth merging will still qualify under GRO.

The reason GRO strengthened the conditions for merging is to allow the
packets to be refragmented on output.  This is what stopped us from
allowing LRO to be used on routers and bridges.  This is also essential
for LRO to be deployed on a virtual host using bridging.

In future we may extend GRO to be less strict.  In order to do so it
would be necessary for the network to be able to handle super-packets
that are different from our existing GSO packets.  Such super-packets
would retain their individual headers which would be examined and/or
modified where necessary.

As it stands GRO should be a complete no-op unless the user enables
GRO using ethtool (and someone modifies the driver involved to call
napi_gro_receive).  Once we're comfortable with GRO we could enable
it automatically whenever RX checksum offload is available.

If this series is accepted, the next step would be to convert all
the relevant drivers to call napi_gro_receive (note that ironically
drivers using netif_rx won't need to be modified to use GRO, though
they won't actually merge anything unless they support RX checksum
offload).  I've converted e1000e as an example (also because that's
the only piece of hardware I've got access to right now :)

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 61+ messages in thread

end of thread, other threads:[~2008-12-16 16:38 UTC | newest]

Thread overview: 61+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-12  5:31 [0/8] net: Generic Receive Offload Herbert Xu
2008-12-12  5:31 ` [PATCH 1/8] net: Add frag_list support to skb_segment Herbert Xu
2008-12-12 19:46   ` Evgeniy Polyakov
2008-12-12 21:41     ` Herbert Xu
2008-12-13  2:38       ` Evgeniy Polyakov
2008-12-13  2:43         ` Herbert Xu
2008-12-13  3:11           ` Evgeniy Polyakov
2008-12-13  3:20             ` Herbert Xu
2008-12-12  5:31 ` [PATCH 2/8] net: Add frag_list support to GSO Herbert Xu
2008-12-12  5:31 ` [PATCH 3/8] net: Add Generic Receive Offload infrastructure Herbert Xu
2008-12-12 19:51   ` Evgeniy Polyakov
2008-12-12 21:45     ` Herbert Xu
2008-12-12 22:25   ` Ben Hutchings
2008-12-12 22:56     ` Herbert Xu
2008-12-12 23:11       ` Herbert Xu
2008-12-13  3:43         ` Herbert Xu
2008-12-13 14:03           ` Evgeniy Polyakov
2008-12-12  5:31 ` [PATCH 4/8] ipv4: Add GRO infrastructure Herbert Xu
2008-12-12 22:55   ` Ben Hutchings
2008-12-12 23:04     ` Herbert Xu
2008-12-12  5:31 ` [PATCH 5/8] net: Add skb_gro_receive Herbert Xu
2008-12-12  5:31 ` [PATCH 6/8] tcp: Add GRO support Herbert Xu
2008-12-12 19:56   ` Evgeniy Polyakov
2008-12-12 21:46     ` Herbert Xu
2008-12-13  2:40       ` Evgeniy Polyakov
2008-12-13  2:46         ` Herbert Xu
2008-12-13  3:10           ` Evgeniy Polyakov
2008-12-13  3:19             ` Herbert Xu
2008-12-12  5:31 ` [PATCH 7/8] ethtool: Add GGRO and SGRO ops Herbert Xu
2008-12-12 20:11   ` Ben Hutchings
2008-12-12 21:48     ` Herbert Xu
2008-12-12 22:35       ` Ben Hutchings
2008-12-12 22:49         ` Herbert Xu
2008-12-14 19:36           ` Waskiewicz Jr, Peter P
2008-12-14 21:09             ` Herbert Xu
2008-12-14 22:00               ` Waskiewicz Jr, Peter P
2008-12-15  3:40                 ` Herbert Xu
2008-12-12  5:31 ` [PATCH 8/8] e1000e: Add GRO support Herbert Xu
2008-12-13  1:34 ` [0/8] net: Generic Receive Offload Herbert Xu
2008-12-13  1:35   ` [PATCH 1/8] net: Add frag_list support to skb_segment Herbert Xu
2008-12-16  7:27     ` David Miller
2008-12-13  1:35   ` [PATCH 2/8] net: Add frag_list support to GSO Herbert Xu
2008-12-16  7:30     ` David Miller
2008-12-13  1:35   ` [PATCH 3/8] net: Add Generic Receive Offload infrastructure Herbert Xu
2008-12-15 23:29     ` Paul E. McKenney
2008-12-15 23:39       ` David Miller
2008-12-16  0:02         ` Paul E. McKenney
2008-12-16  2:04         ` Herbert Xu
2008-12-16 16:37           ` Paul E. McKenney
2008-12-16  7:40     ` David Miller
2008-12-13  1:35   ` [PATCH 4/8] ipv4: Add GRO infrastructure Herbert Xu
2008-12-16  7:41     ` David Miller
2008-12-13  1:35   ` [PATCH 5/8] net: Add skb_gro_receive Herbert Xu
2008-12-13  2:52     ` Herbert Xu
2008-12-16  7:42       ` David Miller
2008-12-13  1:35   ` [PATCH 6/8] tcp: Add GRO support Herbert Xu
2008-12-16  7:43     ` David Miller
2008-12-13  1:35   ` [PATCH 7/8] ethtool: Add GGRO and SGRO ops Herbert Xu
2008-12-16  7:44     ` David Miller
2008-12-13  1:35   ` [PATCH 8/8] e1000e: Add GRO support Herbert Xu
2008-12-16  7:46     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).