summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-12 23:03:25 +0200
committerAdrian Bunk <bunk@kernel.org>2007-10-12 23:03:25 +0200
commit3a05e4826e0ec19fa9f805e81ea3589887922d9d (patch)
tree20ad5ed12843f2f7274e5de7acabddccd8595381
parent765157b1bb052f9dba3e0ba7820a9b3df1177a17 (diff)
Revert "TCP: Fix TCP handling of SACK in bidirectional flows"
This reverts commit 3198d0f16dec0c87071cf26f3f11af9c8f0a009b.
-rw-r--r--net/ipv4/tcp_input.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index cdeca2d5c115..412e3d214d7c 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -1909,10 +1909,7 @@ tcp_fastretrans_alert(struct sock *sk, u32 prior_snd_una,
{
struct inet_connection_sock *icsk = inet_csk(sk);
struct tcp_sock *tp = tcp_sk(sk);
- int is_dupack = (tp->snd_una == prior_snd_una &&
- (!(flag&FLAG_NOT_DUP) ||
- ((flag&FLAG_DATA_SACKED) &&
- (tp->fackets_out > tp->reordering))));
+ int is_dupack = (tp->snd_una == prior_snd_una && !(flag&FLAG_NOT_DUP));
/* Some technical things:
* 1. Reno does not count dupacks (sacked_out) automatically. */