commit | a5ad24be728d4352b71a81fba471aa41eb71f83a | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Sun Feb 08 18:00:39 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Feb 08 20:22:19 2009 -0800 |
tree | cdba82286ec2ef470fc4ae9531f6ccb14b0f2970 | |
parent | aa4b9f533ed5a22952e038b9fac2447ccc682124 [diff] |
gro: Optimise IPv4 packet reception As this function can be called more than half a million times for 10GbE, it's important to optimise it as much as we can. This patch does some obvious changes to use 2-byte and 4-byte operations instead of byte-oriented ones where possible. Bit ops are also used to replace logical ops to reduce branching. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>