Skip to content

Commit

Permalink
Correctly report ingress-mode status.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromi committed Apr 4, 2017
1 parent 85aeee2 commit c6c865e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sch_cake.c
Expand Up @@ -1960,6 +1960,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;

Expand Down

0 comments on commit c6c865e

Please sign in to comment.