Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102674164
D43511.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
949 B
Referenced Files
None
Subscribers
None
D43511.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D43511: tcp: remove unused tcp_sack_output_debug() function
Attached
Detach File
Event Timeline
Log In to Comment