diff options
author | tuexen <tuexen@FreeBSD.org> | 2015-05-29 13:11:13 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2015-05-29 13:11:13 +0000 |
commit | ae995cba1559aaf47b84e218b91a8041505f681c (patch) | |
tree | bf9d44963dc228ac28a3a97aa7c212f5336c17a7 /sys/netinet/sctputil.c | |
parent | b42d72caa31f46b296680a055df482adebbdf1cf (diff) | |
download | FreeBSD-src-ae995cba1559aaf47b84e218b91a8041505f681c.zip FreeBSD-src-ae995cba1559aaf47b84e218b91a8041505f681c.tar.gz |
MFC r280439:
Fix an accounting bug related to the per stream chunk counter.
While there, don't refer to a net articifically.
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r-- | sys/netinet/sctputil.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 9879282..a30a942 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -4891,13 +4891,9 @@ sctp_release_pr_sctp_chunk(struct sctp_tcb *stcb, struct sctp_tmit_chunk *tp1, 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++; |