summaryrefslogtreecommitdiff
path: root/lib/route/qdisc/fq_codel.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/route/qdisc/fq_codel.c')
-rw-r--r--lib/route/qdisc/fq_codel.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/lib/route/qdisc/fq_codel.c b/lib/route/qdisc/fq_codel.c
index 34f6b444..a44ab222 100644
--- a/lib/route/qdisc/fq_codel.c
+++ b/lib/route/qdisc/fq_codel.c
@@ -11,15 +11,26 @@
* @{
*/
-#include <netlink-private/netlink.h>
-#include <netlink-private/tc.h>
+#include "nl-default.h"
+
#include <netlink/netlink.h>
-#include <netlink-private/route/tc-api.h>
#include <netlink/route/qdisc.h>
#include <netlink/route/qdisc/fq_codel.h>
#include <netlink/utils.h>
+#include "tc-api.h"
+
/** @cond SKIP */
+struct rtnl_fq_codel {
+ int fq_limit;
+ uint32_t fq_target;
+ uint32_t fq_interval;
+ int fq_flows;
+ uint32_t fq_quantum;
+ int fq_ecn;
+ uint32_t fq_mask;
+};
+
#define SCH_FQ_CODEL_ATTR_TARGET 0x1
#define SCH_FQ_CODEL_ATTR_LIMIT 0x2
#define SCH_FQ_CODEL_ATTR_INTERVAL 0x4
@@ -358,12 +369,12 @@ static struct rtnl_tc_ops fq_codel_ops = {
.to_msg_fill = fq_codel_msg_fill,
};
-static void __init fq_codel_init(void)
+static void _nl_init fq_codel_init(void)
{
rtnl_tc_register(&fq_codel_ops);
}
-static void __exit fq_codel_exit(void)
+static void _nl_exit fq_codel_exit(void)
{
rtnl_tc_unregister(&fq_codel_ops);
}