diff options
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r-- | net/sched/sch_generic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 51e64acd5098..10b5c0887fff 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -397,14 +397,14 @@ static int pfifo_fast_dump(struct Qdisc *qdisc, struct sk_buff *skb) | |||
397 | struct tc_prio_qopt opt = { .bands = PFIFO_FAST_BANDS }; | 397 | struct tc_prio_qopt opt = { .bands = PFIFO_FAST_BANDS }; |
398 | 398 | ||
399 | memcpy(&opt.priomap, prio2band, TC_PRIO_MAX+1); | 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; | 401 | return skb->len; |
402 | 402 | ||
403 | rtattr_failure: | 403 | nla_put_failure: |
404 | return -1; | 404 | return -1; |
405 | } | 405 | } |
406 | 406 | ||
407 | static int pfifo_fast_init(struct Qdisc *qdisc, struct rtattr *opt) | 407 | static int pfifo_fast_init(struct Qdisc *qdisc, struct nlattr *opt) |
408 | { | 408 | { |
409 | int prio; | 409 | int prio; |
410 | struct sk_buff_head *list = qdisc_priv(qdisc); | 410 | struct sk_buff_head *list = qdisc_priv(qdisc); |