sch_hfsc.c (f30ab418a1d3c5a8b83493e7d70d6876a74aa0ce) | sch_hfsc.c (b94c8afcba3ae6584653b98e315446ea83be6ea5) |
---|---|
1/* 2 * Copyright (c) 2003 Patrick McHardy, <kaber@trash.net> 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 2 7 * of the License, or (at your option) any later version. 8 * --- 1188 unchanged lines hidden (view full) --- 1197 &pfifo_qdisc_ops, 1198 cl->cl_common.classid); 1199 if (new == NULL) 1200 new = &noop_qdisc; 1201 } 1202 1203 sch_tree_lock(sch); 1204 hfsc_purge_queue(sch, cl); | 1/* 2 * Copyright (c) 2003 Patrick McHardy, <kaber@trash.net> 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 2 7 * of the License, or (at your option) any later version. 8 * --- 1188 unchanged lines hidden (view full) --- 1197 &pfifo_qdisc_ops, 1198 cl->cl_common.classid); 1199 if (new == NULL) 1200 new = &noop_qdisc; 1201 } 1202 1203 sch_tree_lock(sch); 1204 hfsc_purge_queue(sch, cl); |
1205 *old = xchg(&cl->qdisc, new); | 1205 *old = cl->qdisc; 1206 cl->qdisc = new; |
1206 sch_tree_unlock(sch); 1207 return 0; 1208} 1209 1210static struct Qdisc * 1211hfsc_class_leaf(struct Qdisc *sch, unsigned long arg) 1212{ 1213 struct hfsc_class *cl = (struct hfsc_class *)arg; --- 520 unchanged lines hidden --- | 1207 sch_tree_unlock(sch); 1208 return 0; 1209} 1210 1211static struct Qdisc * 1212hfsc_class_leaf(struct Qdisc *sch, unsigned long arg) 1213{ 1214 struct hfsc_class *cl = (struct hfsc_class *)arg; --- 520 unchanged lines hidden --- |