gro: Open-code frags copy in skb_gro_receive
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 26 May 2009 18:50:19 +0000 (18:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2009 10:25:54 +0000 (03:25 -0700)
commit42da6994ca6d20ad1d4e30255dee98047db454e7
tree0feb7e6d5d18c5534f080636e809e7df9934f2c6
parent0fb2787bf2fa5dbe02ffd61ca3ce842c50769573
gro: Open-code frags copy in skb_gro_receive

gcc does a poor job at generating code for the memcpy of the frags
array in skb_gro_receive, which is the primary purpose of that
function when merging frags.  In particular, it can't utilise the
alignment information of the source and destination.  This patch
open-codes the copy so we process words instead of bytes.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c