sch_prio.c (5a84d159061d914c8dd4aa372ac6e9529c2be453) sch_prio.c (27a884dc3cb63b93c2b3b643f5b31eed5f8a4d26)
1/*
2 * net/sched/sch_prio.c Simple 3-band priority "scheduler".
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 *

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

266 return err;
267 }
268 return 0;
269}
270
271static int prio_dump(struct Qdisc *sch, struct sk_buff *skb)
272{
273 struct prio_sched_data *q = qdisc_priv(sch);
1/*
2 * net/sched/sch_prio.c Simple 3-band priority "scheduler".
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 *

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

266 return err;
267 }
268 return 0;
269}
270
271static int prio_dump(struct Qdisc *sch, struct sk_buff *skb)
272{
273 struct prio_sched_data *q = qdisc_priv(sch);
274 unsigned char *b = skb->tail;
274 unsigned char *b = skb_tail_pointer(skb);
275 struct tc_prio_qopt opt;
276
277 opt.bands = q->bands;
278 memcpy(&opt.priomap, q->prio2band, TC_PRIO_MAX+1);
279 RTA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
280 return skb->len;
281
282rtattr_failure:

--- 181 unchanged lines hidden ---
275 struct tc_prio_qopt opt;
276
277 opt.bands = q->bands;
278 memcpy(&opt.priomap, q->prio2band, TC_PRIO_MAX+1);
279 RTA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
280 return skb->len;
281
282rtattr_failure:

--- 181 unchanged lines hidden ---