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 authored and ldir-EDB0 committed Apr 19, 2017
1 parent 0849336 commit c21ec0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sch_cake.c
Expand Up @@ -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;

Expand Down

0 comments on commit c21ec0c

Please sign in to comment.