Skip to content
Permalink
Browse files

Revert "Ingress mode can now be configured."

This reverts commit 0849336.
  • Loading branch information
ldir-EDB0 committed May 3, 2017
1 parent cc201cc commit 921dfa8a98d4b1bb8a700b69c52b7f88128b3993
Showing with 0 additions and 8 deletions.
  1. +0 −1 pkt_sched.h
  2. +0 −7 sch_cake.c
@@ -867,7 +867,6 @@ enum {
TCA_CAKE_ETHERNET,
TCA_CAKE_WASH,
TCA_CAKE_MPU,
TCA_CAKE_INGRESS,
__TCA_CAKE_MAX
};
#define TCA_CAKE_MAX (__TCA_CAKE_MAX - 1)
@@ -1771,13 +1771,6 @@ static int cake_change(struct Qdisc *sch, struct nlattr *opt)
q->rate_flags &= ~CAKE_FLAG_AUTORATE_INGRESS;
}

if (tb[TCA_CAKE_INGRESS]) {
if (!!nla_get_u32(tb[TCA_CAKE_INGRESS]))
q->rate_flags |= CAKE_FLAG_INGRESS;
else
q->rate_flags &= ~CAKE_FLAG_INGRESS;
}

if (tb[TCA_CAKE_MEMORY])
q->buffer_config_limit = nla_get_s32(tb[TCA_CAKE_MEMORY]);

0 comments on commit 921dfa8

Please sign in to comment.
You can’t perform that action at this time.