linux/net/sctp/stream_sched_fc.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* SCTP kernel implementation
 * (C) Copyright Red Hat Inc. 2022
 *
 * This file is part of the SCTP kernel implementation
 *
 * These functions manipulate sctp stream queue/scheduling.
 *
 * Please send any bug reports or fixes you make to the
 * email addresched(es):
 *    lksctp developers <[email protected]>
 *
 * Written or modified by:
 *    Xin Long <[email protected]>
 */

#include <linux/list.h>
#include <net/sctp/sctp.h>
#include <net/sctp/sm.h>
#include <net/sctp/stream_sched.h>

/* Fair Capacity and Weighted Fair Queueing handling
 * RFC 8260 section 3.5 and 3.6
 */
static void sctp_sched_fc_unsched_all(struct sctp_stream *stream);

static int sctp_sched_wfq_set(struct sctp_stream *stream, __u16 sid,
			      __u16 weight, gfp_t gfp)
{}

static int sctp_sched_wfq_get(struct sctp_stream *stream, __u16 sid,
			      __u16 *value)
{}

static int sctp_sched_fc_set(struct sctp_stream *stream, __u16 sid,
			     __u16 weight, gfp_t gfp)
{}

static int sctp_sched_fc_get(struct sctp_stream *stream, __u16 sid,
			     __u16 *value)
{}

static int sctp_sched_fc_init(struct sctp_stream *stream)
{}

static int sctp_sched_fc_init_sid(struct sctp_stream *stream, __u16 sid,
				  gfp_t gfp)
{}

static void sctp_sched_fc_free_sid(struct sctp_stream *stream, __u16 sid)
{}

static void sctp_sched_fc_sched(struct sctp_stream *stream,
				struct sctp_stream_out_ext *soute)
{}

static void sctp_sched_fc_enqueue(struct sctp_outq *q,
				  struct sctp_datamsg *msg)
{}

static struct sctp_chunk *sctp_sched_fc_dequeue(struct sctp_outq *q)
{}

static void sctp_sched_fc_dequeue_done(struct sctp_outq *q,
				       struct sctp_chunk *ch)
{}

static void sctp_sched_fc_sched_all(struct sctp_stream *stream)
{}

static void sctp_sched_fc_unsched_all(struct sctp_stream *stream)
{}

static struct sctp_sched_ops sctp_sched_fc =;

void sctp_sched_ops_fc_init(void)
{}

static struct sctp_sched_ops sctp_sched_wfq =;

void sctp_sched_ops_wfq_init(void)
{}