Page MenuHomeFreeBSD

D43511.diff
No OneTemporary

D43511.diff

diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c
--- a/sys/netinet/tcp_sack.c
+++ b/sys/netinet/tcp_sack.c
@@ -994,32 +994,6 @@
(void) tcp_output(tp);
}
-#if 0
-/*
- * Debug version of tcp_sack_output() that walks the scoreboard. Used for
- * now to sanity check the hint.
- */
-static struct sackhole *
-tcp_sack_output_debug(struct tcpcb *tp, int *sack_bytes_rexmt)
-{
- struct sackhole *p;
-
- INP_WLOCK_ASSERT(tptoinpcb(tp));
- *sack_bytes_rexmt = 0;
- TAILQ_FOREACH(p, &tp->snd_holes, scblink) {
- if (SEQ_LT(p->rxmit, p->end)) {
- if (SEQ_LT(p->rxmit, tp->snd_una)) {/* old SACK hole */
- continue;
- }
- *sack_bytes_rexmt += (p->rxmit - p->start);
- break;
- }
- *sack_bytes_rexmt += (SEQ_MIN(p->rxmit, p->end) - p->start);
- }
- return (p);
-}
-#endif
-
/*
* Returns the next hole to retransmit and the number of retransmitted bytes
* from the scoreboard. We store both the next hole and the number of

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 4:52 PM (21 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14661646
Default Alt Text
D43511.diff (949 B)

Event Timeline