[PKT_SCHED]: Dump child qdisc handle in sch_{atm,dsmark}

A qdisc should set tcm_info to the child qdisc handle in its class dump
function.

Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]>

---
commit 3394462061e134f6f4e0d5d4910b63227d810ab7
tree 14348d5f7e8fad88f1d66d7a1a0cef86c147b1ee
parent a69d87ea9357e7f1e8979328dd4878a5c79e6f02
author Patrick McHardy <[EMAIL PROTECTED]> Mon, 13 Feb 2006 21:03:19 +0100
committer Patrick McHardy <[EMAIL PROTECTED]> Mon, 13 Feb 2006 21:03:19 +0100

 net/sched/sch_atm.c    |    1 +
 net/sched/sch_dsmark.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c
index 93ebce4..ac7cb60 100644
--- a/net/sched/sch_atm.c
+++ b/net/sched/sch_atm.c
@@ -638,6 +638,7 @@ static int atm_tc_dump_class(struct Qdis
            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);
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c
index 13e0e7b..f6320ca 100644
--- a/net/sched/sch_dsmark.c
+++ b/net/sched/sch_dsmark.c
@@ -438,6 +438,7 @@ static int dsmark_dump_class(struct Qdis
                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]);
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to