summaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-11-05 21:14:12 +0100
committerThomas Graf <tgr@axs.localdomain>2005-11-05 22:02:26 +0100
commite06368221c204d7b5f1ba37d047170f9a0dd359d (patch)
tree4983e0ba5d5d500aba7bc33ded60b034020cc483 /net/sched
parent05f1cc01b4d24bc5432ae7044f8209d464f2b8ec (diff)
downloadlinux-3.10-e06368221c204d7b5f1ba37d047170f9a0dd359d.tar.gz
linux-3.10-e06368221c204d7b5f1ba37d047170f9a0dd359d.tar.bz2
linux-3.10-e06368221c204d7b5f1ba37d047170f9a0dd359d.zip
[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/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 b3f5ad73fd8..a1369550ce7 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)
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++) {