[Bug 251052] [sctp] Throughput becomes extremely low under load

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Apr 2022 22:25:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251052

--- Comment #9 from Bryan Drewery <bdrewery@FreeBSD.org> ---
(In reply to Michael Tuexen from comment #7)

iperf3 only does this. num_ostreams is only used here so I don't think it does
anything else beyond this.

if (test->settings->num_ostreams > 0) {
    struct sctp_initmsg initmsg;

    memset(&initmsg, 0, sizeof(struct sctp_initmsg));
    initmsg.sinit_num_ostreams = test->settings->num_ostreams;

    if (setsockopt(s, IPPROTO_SCTP, SCTP_INITMSG, &initmsg, sizeof(struct
sctp_initmsg)) < 0) {
            saved_errno = errno;
            close(s);
            freeaddrinfo(server_res);
            errno = saved_errno;
            i_errno = IESETSCTPNSTREAM;
            return -1;
    }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.