From 487507f40f4e443ff1e683641206db80875f3477 Mon Sep 17 00:00:00 2001 From: Simon Zhang Date: Sun, 23 Feb 2020 03:51:42 +0800 Subject: tcp: remove useless prediction Type: fix Signed-off-by: Simon Zhang Change-Id: Ie2dc2653baec92347eb2cbcd197a2e5ec6a80c79 --- src/vnet/tcp/tcp_input.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 67cec5aa6f2..adbfe7a50ac 100755 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -1096,9 +1096,7 @@ tcp_rcv_sacks (tcp_connection_t * tc, u32 ack) { if (seq_lt (blk->start, blk->end) && seq_gt (blk->start, tc->snd_una) - && seq_gt (blk->start, ack) - && seq_lt (blk->start, tc->snd_nxt) - && seq_leq (blk->end, tc->snd_nxt)) + && seq_gt (blk->start, ack) && seq_leq (blk->end, tc->snd_nxt)) { blk++; continue; -- cgit 1.2.3-korg