svn commit: r280439 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Tue Mar 24 14:51:47 UTC 2015
Author: tuexen
Date: Tue Mar 24 14:51:46 2015
New Revision: 280439
URL: https://svnweb.freebsd.org/changeset/base/280439
Log:
Fix an accounting bug related to the per stream chunk counter.
While there, don't refer to a net articifically.
MFC after: 3 days
Modified:
head/sys/netinet/sctputil.c
Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Tue Mar 24 14:36:10 2015 (r280438)
+++ head/sys/netinet/sctputil.c Tue Mar 24 14:51:46 2015 (r280439)
@@ -4891,13 +4891,9 @@ sctp_release_pr_sctp_chunk(struct sctp_t
chk->rec.data.payloadtype = sp->ppid;
chk->rec.data.context = sp->context;
chk->flags = sp->act_flags;
- if (sp->net)
- chk->whoTo = sp->net;
- else
- chk->whoTo = stcb->asoc.primary_destination;
- atomic_add_int(&chk->whoTo->ref_count, 1);
+ chk->whoTo = NULL;
chk->rec.data.TSN_seq = atomic_fetchadd_int(&stcb->asoc.sending_seq, 1);
- stcb->asoc.pr_sctp_cnt++;
+ strq->chunks_on_queues++;
TAILQ_INSERT_TAIL(&stcb->asoc.sent_queue, chk, sctp_next);
stcb->asoc.sent_queue_cnt++;
stcb->asoc.pr_sctp_cnt++;
More information about the svn-src-all
mailing list