diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-05-26 14:50:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-27 06:26:05 -0400 |
commit | a2a804cddfe65f18f903985e8a8d04c7c9eec354 (patch) | |
tree | 93c81d1a672b52ff8ec38fefa227ab894b37ec62 /net/ipv4 | |
parent | 9aaa156cf9b7e9d9ed899f254283b91c4e3c36c8 (diff) |
tcp: Do not check flush when comparing options for GRO
There is no need to repeatedly check flush when comparing TCP
options for GRO as it will be false 99% of the time where it
matters.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index c3dcec5efea5..0fb8b441f1f9 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -2570,7 +2570,7 @@ found: | |||
2570 | flush |= (flags ^ tcp_flag_word(th2)) & | 2570 | flush |= (flags ^ tcp_flag_word(th2)) & |
2571 | ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH); | 2571 | ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH); |
2572 | flush |= th->ack_seq ^ th2->ack_seq; | 2572 | flush |= th->ack_seq ^ th2->ack_seq; |
2573 | for (i = sizeof(*th); !flush && i < thlen; i += 4) | 2573 | for (i = sizeof(*th); i < thlen; i += 4) |
2574 | flush |= *(u32 *)((u8 *)th + i) ^ | 2574 | flush |= *(u32 *)((u8 *)th + i) ^ |
2575 | *(u32 *)((u8 *)th2 + i); | 2575 | *(u32 *)((u8 *)th2 + i); |
2576 | 2576 | ||