aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Scheffenegger <rscheff@FreeBSD.org>2024-01-19 13:48:11 +0000
committerRichard Scheffenegger <rscheff@FreeBSD.org>2024-01-19 13:48:32 +0000
commitdfe30e41967f9b5112c42ca20ec2c366db74cef9 (patch)
tree2ec0b6c8e2def5736d8a3d56d63b19b18f434d34
parent47a6fb9d5a2ebec12114a604053ffbd2929f0021 (diff)
downloadsrc-dfe30e41967f9b5112c42ca20ec2c366db74cef9.tar.gz
src-dfe30e41967f9b5112c42ca20ec2c366db74cef9.zip
tcp: remove unused tcp_sack_output_debug() function
This debugging code has been lingering for years with no known use. No functional change. Reviewed by: tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D43511
-rw-r--r--sys/netinet/tcp_sack.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c
index 48efe855f689..f9ca83850c09 100644
--- a/sys/netinet/tcp_sack.c
+++ b/sys/netinet/tcp_sack.c
@@ -994,32 +994,6 @@ tcp_sack_partialack(struct tcpcb *tp, struct tcphdr *th)
(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