libnl: /data/src/libnl/include/netlink/route/qdisc/hfsc.h Source File

libnl 3.12.0

hfsc.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2014 Cong Wang <xiyou.wangcong@gmail.com>
4 */
5
6#ifndef NETLINK_HFSC_H_
7#define NETLINK_HFSC_H_
8
9#include <netlink/netlink.h>
10#include <netlink/route/tc.h>
11#include <netlink/route/qdisc.h>
12#include <netlink/route/class.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18struct tc_service_curve;
19
20extern uint32_t rtnl_qdisc_hfsc_get_defcls(const struct rtnl_qdisc *);
21extern int rtnl_qdisc_hfsc_set_defcls(struct rtnl_qdisc *, uint32_t);
22
23extern int rtnl_class_hfsc_get_rsc(const struct rtnl_class *cls, struct tc_service_curve *tsc);
24extern int rtnl_class_hfsc_set_rsc(struct rtnl_class *cls, const struct tc_service_curve *tsc);
25extern int rtnl_class_hfsc_get_fsc(const struct rtnl_class *cls, struct tc_service_curve *tsc);
26extern int rtnl_class_hfsc_set_fsc(struct rtnl_class *cls, const struct tc_service_curve *tsc);
27extern int rtnl_class_hfsc_get_usc(const struct rtnl_class *cls, struct tc_service_curve *tsc);
28extern int rtnl_class_hfsc_set_usc(struct rtnl_class *cls, const struct tc_service_curve *tsc);
29#ifdef __cplusplus
30}
31#endif
32
33#endif
rtnl_qdisc_hfsc_get_defcls
uint32_t rtnl_qdisc_hfsc_get_defcls(const struct rtnl_qdisc *)
Return default class of HFSC qdisc.
Definition hfsc.c:209
rtnl_qdisc_hfsc_set_defcls
int rtnl_qdisc_hfsc_set_defcls(struct rtnl_qdisc *, uint32_t)
Set default class of the hfsc qdisc to the specified value.
Definition hfsc.c:225
rtnl_class
Definition class.c:23
rtnl_qdisc
Definition nl-route.h:119