netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [FIX] NET: Fix sch_api and sch_prio to properly set and detect the root qdisc
@ 2007-07-24 22:33 PJ Waskiewicz
  2007-07-24 22:33 ` [PATCH 1/2] NET: Fix sch_api to properly set sch->parent on " PJ Waskiewicz
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: PJ Waskiewicz @ 2007-07-24 22:33 UTC (permalink / raw)
  To: davem; +Cc: netdev, kaber

This is a patch from Patrick McHardy to fix the sch_api code, which I
went ahead and tested and made a slight fix to.  This also includes
the fix to sch_prio based on Patrick's patch.

The sch->parent handle should contain the parent qdisc ID.  When the
qdisc is the root qdisc (TC_H_ROOT), the parent handle should be the
value TC_H_ROOT.  This fixes sch_api to set this correctly on
qdisc_create() for both ingress and egress qdiscs.

Change this check in prio_tune() so that only the root qdisc can be
multiqueue-enabled; use sch->parent instead of sch->handle.

-- 
PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-31  0:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-24 22:33 [FIX] NET: Fix sch_api and sch_prio to properly set and detect the root qdisc PJ Waskiewicz
2007-07-24 22:33 ` [PATCH 1/2] NET: Fix sch_api to properly set sch->parent on " PJ Waskiewicz
2007-07-24 22:33 ` [PATCH 2/2] NET: Fix sch_prio to properly detect the root qdisc on multiqueue PJ Waskiewicz
2007-07-25  0:35 ` [FIX] NET: Fix sch_api and sch_prio to properly set and detect the root qdisc Patrick McHardy
2007-07-27 16:22   ` Waskiewicz Jr, Peter P
2007-07-31  0:14     ` David Miller
2007-07-31  0:14       ` Waskiewicz Jr, Peter P

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).