diff options
Diffstat (limited to 'lib/cli/qdisc/bfifo.c')
-rw-r--r-- | lib/cli/qdisc/bfifo.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/cli/qdisc/bfifo.c b/lib/cli/qdisc/bfifo.c index 2f74659..710d6c4 100644 --- a/lib/cli/qdisc/bfifo.c +++ b/lib/cli/qdisc/bfifo.c @@ -6,11 +6,11 @@ * License as published by the Free Software Foundation version 2.1 * of the License. * - * Copyright (c) 2010 Thomas Graf <tgraf@suug.ch> + * Copyright (c) 2010-2011 Thomas Graf <tgraf@suug.ch> */ #include <netlink/cli/utils.h> -#include <netlink/cli/qdisc.h> +#include <netlink/cli/tc.h> #include <netlink/route/sch/fifo.h> static void print_usage(void) @@ -27,8 +27,9 @@ static void print_usage(void) " nl-qdisc-add --dev=eth1 --parent=root bfifo --limit=4096\n"); } -static void bfifo_parse_argv(struct rtnl_qdisc *qdisc, int argc, char **argv) +static void bfifo_parse_argv(struct rtnl_tc *tc, int argc, char **argv) { + struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; int limit; for (;;) { @@ -64,18 +65,19 @@ static void bfifo_parse_argv(struct rtnl_qdisc *qdisc, int argc, char **argv) } } -static struct nl_cli_qdisc_module bfifo_module = +static struct nl_cli_tc_module bfifo_module = { - .qm_name = "bfifo", - .qm_parse_qdisc_argv = bfifo_parse_argv, + .tm_name = "bfifo", + .tm_type = RTNL_TC_TYPE_QDISC, + .tm_parse_argv = bfifo_parse_argv, }; static void __init bfifo_init(void) { - nl_cli_qdisc_register(&bfifo_module); + nl_cli_tc_register(&bfifo_module); } static void __exit bfifo_exit(void) { - nl_cli_qdisc_unregister(&bfifo_module); + nl_cli_tc_unregister(&bfifo_module); } |