|
@@ -1276,9 +1276,10 @@ static int htb_delete(struct Qdisc *sch, unsigned long arg)
|
|
struct Qdisc *new_q = NULL;
|
|
struct Qdisc *new_q = NULL;
|
|
int last_child = 0;
|
|
int last_child = 0;
|
|
|
|
|
|
- // TODO: why don't allow to delete subtree ? references ? does
|
|
|
|
- // tc subsys quarantee us that in htb_destroy it holds no class
|
|
|
|
- // refs so that we can remove children safely there ?
|
|
|
|
|
|
+ /* TODO: why don't allow to delete subtree ? references ? does
|
|
|
|
+ * tc subsys guarantee us that in htb_destroy it holds no class
|
|
|
|
+ * refs so that we can remove children safely there ?
|
|
|
|
+ */
|
|
if (cl->children || cl->filter_cnt)
|
|
if (cl->children || cl->filter_cnt)
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
|
|
|