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>
このコミットが含まれているのは:
John Fastabend
2014-10-05 21:27:53 -07:00
committed by David S. Miller
コミット 82a470f111
10個のファイルの変更26行の追加25行の削除

ファイルの表示

@@ -23,7 +23,7 @@ struct nbyte_data {
char pattern[0];
};
static int em_nbyte_change(struct tcf_proto *tp, void *data, int data_len,
static int em_nbyte_change(struct net *net, void *data, int data_len,
struct tcf_ematch *em)
{
struct tcf_em_nbyte *nbyte = data;