sch_generic.c (62e3ba1b558e5f393ef746880613fb8222e64d03) sch_generic.c (1e90474c377e92db7262a8968a45c1dd980ca9e5)
1/*
2 * net/sched/sch_generic.c Generic packet scheduler routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 383 unchanged lines hidden (view full) ---

392 qdisc->q.qlen = 0;
393}
394
395static int pfifo_fast_dump(struct Qdisc *qdisc, struct sk_buff *skb)
396{
397 struct tc_prio_qopt opt = { .bands = PFIFO_FAST_BANDS };
398
399 memcpy(&opt.priomap, prio2band, TC_PRIO_MAX+1);
1/*
2 * net/sched/sch_generic.c Generic packet scheduler routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 383 unchanged lines hidden (view full) ---

392 qdisc->q.qlen = 0;
393}
394
395static int pfifo_fast_dump(struct Qdisc *qdisc, struct sk_buff *skb)
396{
397 struct tc_prio_qopt opt = { .bands = PFIFO_FAST_BANDS };
398
399 memcpy(&opt.priomap, prio2band, TC_PRIO_MAX+1);
400 RTA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
400 NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
401 return skb->len;
402
401 return skb->len;
402
403rtattr_failure:
403nla_put_failure:
404 return -1;
405}
406
404 return -1;
405}
406
407static int pfifo_fast_init(struct Qdisc *qdisc, struct rtattr *opt)
407static int pfifo_fast_init(struct Qdisc *qdisc, struct nlattr *opt)
408{
409 int prio;
410 struct sk_buff_head *list = qdisc_priv(qdisc);
411
412 for (prio = 0; prio < PFIFO_FAST_BANDS; prio++)
413 skb_queue_head_init(list + prio);
414
415 return 0;

--- 221 unchanged lines hidden ---
408{
409 int prio;
410 struct sk_buff_head *list = qdisc_priv(qdisc);
411
412 for (prio = 0; prio < PFIFO_FAST_BANDS; prio++)
413 skb_queue_head_init(list + prio);
414
415 return 0;

--- 221 unchanged lines hidden ---