aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_gred.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c
index b3f5ad73fd82..a1369550ce78 100644
--- a/net/sched/sch_gred.c
+++ b/net/sched/sch_gred.c
@@ -562,8 +562,14 @@ static int gred_dump(struct Qdisc *sch, struct sk_buff *skb)
562 struct gred_sched *table = qdisc_priv(sch); 562 struct gred_sched *table = qdisc_priv(sch);
563 struct rtattr *parms, *opts = NULL; 563 struct rtattr *parms, *opts = NULL;
564 int i; 564 int i;
565 struct tc_gred_sopt sopt = {
566 .DPs = table->DPs,
567 .def_DP = table->def,
568 .grio = gred_rio_mode(table),
569 };
565 570
566 opts = RTA_NEST(skb, TCA_OPTIONS); 571 opts = RTA_NEST(skb, TCA_OPTIONS);
572 RTA_PUT(skb, TCA_GRED_DPS, sizeof(sopt), &sopt);
567 parms = RTA_NEST(skb, TCA_GRED_PARMS); 573 parms = RTA_NEST(skb, TCA_GRED_PARMS);
568 574
569 for (i = 0; i < MAX_DPs; i++) { 575 for (i = 0; i < MAX_DPs; i++) {