From: Herbert Xu Date: Tue, 26 May 2009 18:50:34 +0000 (+0000) Subject: tcp: Do not check flush when comparing options for GRO X-Git-Tag: v2.6.31-rc1~14^2~324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2a804cddfe65f18f903985e8a8d04c7c9eec354;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index c3dcec5..0fb8b44 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2570,7 +2570,7 @@ found: flush |= (flags ^ tcp_flag_word(th2)) & ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH); flush |= th->ack_seq ^ th2->ack_seq; - for (i = sizeof(*th); !flush && i < thlen; i += 4) + for (i = sizeof(*th); i < thlen; i += 4) flush |= *(u32 *)((u8 *)th + i) ^ *(u32 *)((u8 *)th2 + i);