diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-05-26 14:50:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-27 06:25:59 -0400 |
commit | 4a9a2968a17eae42ef5dffca8b37534c864e30cc (patch) | |
tree | 8fa6f421a04491546a25f18a30e2133d50d83c64 /net/ipv4 | |
parent | 745898eaf0eb7a04a56dec1188d9148259510863 (diff) |
tcp: Remove unnecessary window comparisons for GRO
The window has already been checked as part of the flag word
so there is no need to check it explicitly.
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 ff6adecc54c6..313960e4cfdc 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -2559,7 +2559,7 @@ found: | |||
2559 | flush |= flags & TCP_FLAG_CWR; | 2559 | flush |= flags & TCP_FLAG_CWR; |
2560 | flush |= (flags ^ tcp_flag_word(th2)) & | 2560 | flush |= (flags ^ tcp_flag_word(th2)) & |
2561 | ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH); | 2561 | ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH); |
2562 | flush |= (th->ack_seq ^ th2->ack_seq) | (th->window ^ th2->window); | 2562 | flush |= th->ack_seq ^ th2->ack_seq; |
2563 | for (i = sizeof(*th); !flush && i < thlen; i += 4) | 2563 | for (i = sizeof(*th); !flush && i < thlen; i += 4) |
2564 | flush |= *(u32 *)((u8 *)th + i) ^ | 2564 | flush |= *(u32 *)((u8 *)th + i) ^ |
2565 | *(u32 *)((u8 *)th2 + i); | 2565 | *(u32 *)((u8 *)th2 + i); |