Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a9a2968 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 745898ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2559,7 +2559,7 @@ found:
	flush |= flags & TCP_FLAG_CWR;
	flush |= flags & TCP_FLAG_CWR;
	flush |= (flags ^ tcp_flag_word(th2)) &
	flush |= (flags ^ tcp_flag_word(th2)) &
		  ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH);
		  ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH);
	flush |= (th->ack_seq ^ th2->ack_seq) | (th->window ^ th2->window);
	flush |= th->ack_seq ^ th2->ack_seq;
	for (i = sizeof(*th); !flush && i < thlen; i += 4)
	for (i = sizeof(*th); !flush && i < thlen; i += 4)
		flush |= *(u32 *)((u8 *)th + i) ^
		flush |= *(u32 *)((u8 *)th + i) ^
			 *(u32 *)((u8 *)th2 + i);
			 *(u32 *)((u8 *)th2 + i);