diff options
author | Florian Westphal <fw@strlen.de> | 2015-04-30 12:12:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-02 22:25:17 -0400 |
commit | 4749c3ef854e3a5d3dd3cc0ccd2dcb7e05d583bd (patch) | |
tree | bc74284df9d0379304268075705df659d35a8137 /net/sched/act_api.c | |
parent | 7eee8cd4d8d6ce3f70e6bea716c19b28635a5232 (diff) | |
download | talos-obmc-linux-4749c3ef854e3a5d3dd3cc0ccd2dcb7e05d583bd.tar.gz talos-obmc-linux-4749c3ef854e3a5d3dd3cc0ccd2dcb7e05d583bd.zip |
net: sched: remove TC_MUNGED bits
Not used.
pedit sets TC_MUNGED when packet content was altered, but all the core
does is unset MUNGED again and then set OK2MUNGE.
And the latter isn't tested anywhere. So lets remove both
TC_MUNGED and TC_OK2MUNGE.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 3d43e4979f27..af427a3dbcba 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -392,11 +392,6 @@ int tcf_action_exec(struct sk_buff *skb, const struct list_head *actions, list_for_each_entry(a, actions, list) { repeat: ret = a->ops->act(skb, a, res); - if (TC_MUNGED & skb->tc_verd) { - /* copied already, allow trampling */ - skb->tc_verd = SET_TC_OK2MUNGE(skb->tc_verd); - skb->tc_verd = CLR_TC_MUNGED(skb->tc_verd); - } if (ret == TC_ACT_REPEAT) goto repeat; /* we need a ttl - JHS */ if (ret != TC_ACT_PIPE) |