mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Fix an accounting bug related to the per stream chunk counter.
While there, don't refer to a net articifically. MFC after: 3 days
This commit is contained in:
parent
6dd9f5b375
commit
7fd5b4365a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280439
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user