[PKT_SCHED]: Dump child qdisc handle in sch_{atm,dsmark}
authorPatrick McHardy <kaber@trash.net>
Tue, 21 Mar 2006 03:01:06 +0000 (19:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 03:01:06 +0000 (19:01 -0800)
A qdisc should set tcm_info to the child qdisc handle in its class
dump function.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_atm.c
net/sched/sch_dsmark.c

index 93ebce40acac61e069f2d24bfd32b7a5286c1c0c..ac7cb60d1e251da2591c42bae124011e02d2d98a 100644 (file)
@@ -638,6 +638,7 @@ static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl,
            sch,p,flow,skb,tcm);
        if (!find_flow(p,flow)) return -EINVAL;
        tcm->tcm_handle = flow->classid;
+       tcm->tcm_info = flow->q->handle;
        rta = (struct rtattr *) b;
        RTA_PUT(skb,TCA_OPTIONS,0,NULL);
        RTA_PUT(skb,TCA_ATM_HDR,flow->hdr_len,flow->hdr);
index 13e0e7b3856bfe396c791a0ad77c9c6e4d040dc3..f6320ca70493943a64cb449b07e71a52f72095f4 100644 (file)
@@ -438,6 +438,7 @@ static int dsmark_dump_class(struct Qdisc *sch, unsigned long cl,
                return -EINVAL;
 
        tcm->tcm_handle = TC_H_MAKE(TC_H_MAJ(sch->handle), cl-1);
+       tcm->tcm_info = p->q->handle;
 
        opts = RTA_NEST(skb, TCA_OPTIONS);
        RTA_PUT_U8(skb,TCA_DSMARK_MASK, p->mask[cl-1]);