From c21ec0c5521da18bc5fffac87af73b53edea5c10 Mon Sep 17 00:00:00 2001 From: Jonathan Morton Date: Tue, 4 Apr 2017 14:20:02 +0300 Subject: [PATCH] Correctly report ingress-mode status. --- sch_cake.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sch_cake.c b/sch_cake.c index e61d891..35f42b0 100644 --- a/sch_cake.c +++ b/sch_cake.c @@ -1930,6 +1930,10 @@ static int cake_dump(struct Qdisc *sch, struct sk_buff *skb) !!(q->rate_flags & CAKE_FLAG_AUTORATE_INGRESS))) goto nla_put_failure; + if (nla_put_u32(skb, TCA_CAKE_INGRESS, + !!(q->rate_flags & CAKE_FLAG_INGRESS))) + goto nla_put_failure; + if (nla_put_u32(skb, TCA_CAKE_MEMORY, q->buffer_config_limit)) goto nla_put_failure;