[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <D5C1322C3E673F459512FB59E0DDC3290340F87C@orsmsx414.amr.corp.intel.com>
Date: Wed, 18 Jul 2007 16:29:19 -0700
From: "Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@...el.com>
To: "Patrick McHardy" <kaber@...sh.net>
Cc: <netdev@...r.kernel.org>
Subject: RE: Question: how to detect if a qdisc is root or not?
> You're right, thats a bug. TC_H_ROOT is the parent ID, which
> is stored in sch->parent. IIRC its also passed to the
> ->init() function.
Unfortunately it's not passed. It is passed into the ->change()
function:
static int prio_init(struct Qdisc *sch, struct rtattr *opt)
static int prio_change(struct Qdisc *sch, u32 handle, u32 parent, struct
rtattr **tca, unsigned long *arg)
I did mess around with sch->parent a bit, with no success (it appears to
be zero / unitialized). I'll keep investigating.
Thanks,
-PJ Waskiewicz
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists