[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 <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6d037a26f0
commit
cdc7f8e362
@@ -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]);
|
||||
|
Reference in New Issue
Block a user