diff options
Diffstat (limited to 'tc/q_fifo.c')
-rw-r--r-- | tc/q_fifo.c | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/tc/q_fifo.c b/tc/q_fifo.c index 8905c3d4..56bb9acd 100644 --- a/tc/q_fifo.c +++ b/tc/q_fifo.c @@ -78,33 +78,21 @@ static int fifo_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) return 0; } -static int fifo_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) -{ - return 0; -} - struct qdisc_util bfifo_util = { - NULL, - "bfifo", - fifo_parse_opt, - fifo_print_opt, - fifo_print_xstats, + .id = "bfifo", + .parse_qopt = fifo_parse_opt, + .print_qopt = fifo_print_opt, }; struct qdisc_util pfifo_util = { - NULL, - "pfifo", - fifo_parse_opt, - fifo_print_opt, - fifo_print_xstats, + .id = "pfifo", + .parse_qopt = fifo_parse_opt, + .print_qopt = fifo_print_opt, }; extern int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt); struct qdisc_util pfifo_fast_util = { - NULL, - "pfifo_fast", - NULL, - prio_print_opt, - fifo_print_xstats, + .id = "pfifo_fast", + .print_qopt = prio_print_opt, }; |