aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-11-05 15:14:12 -0500
committerThomas Graf <tgr@axs.localdomain>2005-11-05 16:02:26 -0500
commite06368221c204d7b5f1ba37d047170f9a0dd359d (patch)
tree4983e0ba5d5d500aba7bc33ded60b034020cc483 /net
parent05f1cc01b4d24bc5432ae7044f8209d464f2b8ec (diff)
[PKT_SCHED]: GRED: Dump table definition
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net')
-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++) {