summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-04-21 20:11:01 +0000
committerps <ps@FreeBSD.org>2005-04-21 20:11:01 +0000
commita61b20503e3588f6845f8ccaae377a75c7e6d8f0 (patch)
tree708a3fc3e4119aa30468d62e470d428e92893525 /sys/netinet/tcp_var.h
parent3c771e02c3cfe19cccaa8af7039cb235a14ead3a (diff)
downloadFreeBSD-src-a61b20503e3588f6845f8ccaae377a75c7e6d8f0.zip
FreeBSD-src-a61b20503e3588f6845f8ccaae377a75c7e6d8f0.tar.gz
- Make the sack scoreboard logic use the TAILQ macros. This improves
code readability and facilitates some anticipated optimizations in tcp_sack_option(). - Remove tcp_print_holes() and TCP_SACK_DEBUG. Submitted by: Raja Mukerji. Reviewed by: Mohan Srinivasan, Noritoshi Demizu.
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 2a727a0..84d7150 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -60,7 +60,7 @@ struct sackhole {
tcp_seq start; /* start seq no. of hole */
tcp_seq end; /* end seq no. */
tcp_seq rxmit; /* next seq. no in hole to be retransmitted */
- struct sackhole *next; /* next in list */
+ TAILQ_ENTRY(sackhole) scblink; /* scoreboard linkage */
};
struct tcptemp {
@@ -186,7 +186,7 @@ struct tcpcb {
/* SACK related state */
int sack_enable; /* enable SACK for this connection */
int snd_numholes; /* number of holes seen by sender */
- struct sackhole *snd_holes; /* linked list of holes (sorted) */
+ TAILQ_HEAD(, sackhole) snd_holes; /* SACK scoreboard (sorted) */
tcp_seq rcv_lastsack; /* last seq number(+1) sack'd by rcv'r*/
int rcv_numsacks; /* # distinct sack blks present */
struct sackblk sackblks[MAX_SACK_BLKS]; /* seq nos. of sack blocks */
@@ -582,9 +582,6 @@ void tcp_sack_partialack(struct tcpcb *, struct tcphdr *);
void tcp_free_sackholes(struct tcpcb *tp);
int tcp_newreno(struct tcpcb *, struct tcphdr *);
u_long tcp_seq_subtract(u_long, u_long );
-#ifdef TCP_SACK_DEBUG
-void tcp_print_holes(struct tcpcb *tp);
-#endif /* TCP_SACK_DEBUG */
#endif /* _KERNEL */
OpenPOWER on IntegriCloud