Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet simplify code a little. no functional changes.
details: https://anonhg.NetBSD.org/src/rev/c84a4e7dcf28
branches: trunk
changeset: 763960:c84a4e7dcf28
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Apr 08 11:15:11 2011 +0000
description:
simplify code a little. no functional changes.
diffstat:
sys/netinet/tcp_congctl.c | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diffs (45 lines):
diff -r 46d3c2050977 -r c84a4e7dcf28 sys/netinet/tcp_congctl.c
--- a/sys/netinet/tcp_congctl.c Fri Apr 08 11:11:53 2011 +0000
+++ b/sys/netinet/tcp_congctl.c Fri Apr 08 11:15:11 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_congctl.c,v 1.15 2008/04/28 20:24:09 martin Exp $ */
+/* $NetBSD: tcp_congctl.c,v 1.16 2011/04/08 11:15:11 yamt Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2001, 2005, 2006 The NetBSD Foundation, Inc.
@@ -135,7 +135,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_congctl.c,v 1.15 2008/04/28 20:24:09 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_congctl.c,v 1.16 2011/04/08 11:15:11 yamt Exp $");
#include "opt_inet.h"
#include "opt_tcp_debug.h"
@@ -617,6 +617,7 @@
static int
tcp_newreno_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
{
+
if (SEQ_LT(th->th_ack, tp->snd_high)) {
/*
* False fast retransmit after timeout.
@@ -624,14 +625,11 @@
*/
tp->t_dupacks = 0;
return 1;
- } else {
- /*
- * Fast retransmit is same as reno.
- */
- return tcp_reno_fast_retransmit(tp, th);
}
-
- return 0;
+ /*
+ * Fast retransmit is same as reno.
+ */
+ return tcp_reno_fast_retransmit(tp, th);
}
/*
Home |
Main Index |
Thread Index |
Old Index