diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-11-07 22:11:38 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-11-07 22:11:38 +0000 |
commit | 2e86daf6ac341d6133cfdfc77b6a2a4bf01172e5 (patch) | |
tree | 5fc728a115893eb242d7cb194eda516b9e5d30c0 /sys/netinet/sctp_timer.c | |
parent | 79b7e755b41a4f7e2a36e4a7c6122f35fba258eb (diff) | |
download | FreeBSD-src-2e86daf6ac341d6133cfdfc77b6a2a4bf01172e5.zip FreeBSD-src-2e86daf6ac341d6133cfdfc77b6a2a4bf01172e5.tar.gz |
Add per outgoing stream accounting for chunks in the send
and sent queue. This provides no functional change, but is
a preparation for an upcoming stream reset improvement.
Done with rrs@.
MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_timer.c')
-rw-r--r-- | sys/netinet/sctp_timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/sctp_timer.c b/sys/netinet/sctp_timer.c index d422350..fe7f754 100644 --- a/sys/netinet/sctp_timer.c +++ b/sys/netinet/sctp_timer.c @@ -440,6 +440,11 @@ sctp_recover_sent_list(struct sctp_tcb *stcb) if (SCTP_TSN_GE(asoc->last_acked_seq, chk->rec.data.TSN_seq)) { SCTP_PRINTF("Found chk:%p tsn:%x <= last_acked_seq:%x\n", (void *)chk, chk->rec.data.TSN_seq, asoc->last_acked_seq); + if (chk->sent != SCTP_DATAGRAM_NR_MARKED) { + if (asoc->strmout[chk->rec.data.stream_number].chunks_on_queues > 0) { + asoc->strmout[chk->rec.data.stream_number].chunks_on_queues--; + } + } TAILQ_REMOVE(&asoc->sent_queue, chk, sctp_next); if (chk->pr_sctp_on) { if (asoc->pr_sctp_cnt != 0) |