]> git.baikalelectronics.ru Git - kernel.git/commit
gro: Optimise TCP packet reception
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Feb 2009 18:00:40 +0000 (18:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2009 04:22:19 +0000 (20:22 -0800)
commite17abf0e034243628690b44f10fc981c54416c93
tree3e659464dd24b9634897d631931f334ab1c22179
parentc3f84402273e34a502035401d058e93b4f7d51e8
gro: Optimise TCP packet reception

gro: Optimise TCP 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 uses bit ops to logical ops, as well as open coding
memcmp to exploit alignment properties.

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