1 /* SPDX-License-Identifier: LGPL-2.1-only */ 2 /* 3 * Copyright (c) 2013 Cong Wang <[email protected]> 4 */ 5 6 #ifndef NETLINK_FQ_CODEL_H_ 7 #define NETLINK_FQ_CODEL_H_ 8 9 #include <netlink/netlink.h> 10 #include <netlink/route/qdisc.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 extern int rtnl_qdisc_fq_codel_set_limit(struct rtnl_qdisc *, int); 17 extern int rtnl_qdisc_fq_codel_get_limit(struct rtnl_qdisc *); 18 19 extern int rtnl_qdisc_fq_codel_set_target(struct rtnl_qdisc *, uint32_t); 20 extern uint32_t rtnl_qdisc_fq_codel_get_target(struct rtnl_qdisc *); 21 22 extern int rtnl_qdisc_fq_codel_set_interval(struct rtnl_qdisc *, uint32_t); 23 extern uint32_t rtnl_qdisc_fq_codel_get_interval(struct rtnl_qdisc *); 24 25 extern int rtnl_qdisc_fq_codel_set_quantum(struct rtnl_qdisc *, uint32_t); 26 extern uint32_t rtnl_qdisc_fq_codel_get_quantum(struct rtnl_qdisc *); 27 28 extern int rtnl_qdisc_fq_codel_set_flows(struct rtnl_qdisc *, int); 29 extern int rtnl_qdisc_fq_codel_get_flows(struct rtnl_qdisc *); 30 31 extern int rtnl_qdisc_fq_codel_set_ecn(struct rtnl_qdisc *, int); 32 extern int rtnl_qdisc_fq_codel_get_ecn(struct rtnl_qdisc *); 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif 39