gro: Optimise Ethernet header comparison
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Feb 2009 18:00:37 +0000 (18:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2009 04:22:18 +0000 (20:22 -0800)
This patch optimises the Ethernet header comparison to use 2-byte
and 4-byte xors instead of memcmp.  In order to facilitate this,
the actual comparison is now carried out by the callers of the
shared dev_gro_receive function.

This has a significant impact when receiving 1500B packets through
10GbE.

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

No differences found