diff options
author | John Fastabend <john.fastabend@gmail.com> | 2014-10-06 06:27:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-07 00:02:32 +0200 |
commit | 82a470f1119eb7d2e4941b915bf9cd6fd8d54494 (patch) | |
tree | d16362829e33070f8367876205659fbf271ecfc2 /net/sched/cls_basic.c | |
parent | net: introduce netdevice gso_min_segs attribute (diff) | |
download | linux-82a470f1119eb7d2e4941b915bf9cd6fd8d54494.tar.xz linux-82a470f1119eb7d2e4941b915bf9cd6fd8d54494.zip |
net: sched: remove tcf_proto from ematch calls
This removes the tcf_proto argument from the ematch code paths that
only need it to reference the net namespace. This allows simplifying
qdisc code paths especially when we need to tear down the ematch
from an RCU callback. In this case we can not guarentee that the
tcf_proto structure is still valid.
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_basic.c')
-rw-r--r-- | net/sched/cls_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index fe20826a79e7..90647a8af8ca 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -95,7 +95,7 @@ static void basic_delete_filter(struct rcu_head *head) tcf_unbind_filter(tp, &f->res); tcf_exts_destroy(&f->exts); - tcf_em_tree_destroy(tp, &f->ematches); + tcf_em_tree_destroy(&f->ematches); kfree(f); } |