]> err.no Git - linux-2.6/commitdiff
[PKT_SCHED]: GRED: Dump table definition
authorThomas Graf <tgraf@suug.ch>
Sat, 5 Nov 2005 20:14:12 +0000 (21:14 +0100)
committerThomas Graf <tgr@axs.localdomain>
Sat, 5 Nov 2005 21:02:26 +0000 (22:02 +0100)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/sched/sch_gred.c

index b3f5ad73fd8261eaa78c3fab41f1dece553d10ef..a1369550ce78fec256c23765f299eae27dd1d796 100644 (file)
@@ -562,8 +562,14 @@ static int gred_dump(struct Qdisc *sch, struct sk_buff *skb)
        struct gred_sched *table = qdisc_priv(sch);
        struct rtattr *parms, *opts = NULL;
        int i;
+       struct tc_gred_sopt sopt = {
+               .DPs    = table->DPs,
+               .def_DP = table->def,
+               .grio   = gred_rio_mode(table),
+       };
 
        opts = RTA_NEST(skb, TCA_OPTIONS);
+       RTA_PUT(skb, TCA_GRED_DPS, sizeof(sopt), &sopt);
        parms = RTA_NEST(skb, TCA_GRED_PARMS);
 
        for (i = 0; i < MAX_DPs; i++) {