net: sched: add percpu stats to actions
Reuse existing percpu infrastructure John Fastabend added for qdisc. This patch adds a new cpustats parameter to tcf_hash_create() and all actions pass false, meaning this patch should have no effect yet. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Alexei Starovoitov <ast@plumgrid.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
24ea591d22
commit
519c818e8f
@@ -114,7 +114,7 @@ static int tcf_ipt_init(struct net *net, struct nlattr *nla, struct nlattr *est,
|
||||
index = nla_get_u32(tb[TCA_IPT_INDEX]);
|
||||
|
||||
if (!tcf_hash_check(index, a, bind) ) {
|
||||
ret = tcf_hash_create(index, est, a, sizeof(*ipt), bind);
|
||||
ret = tcf_hash_create(index, est, a, sizeof(*ipt), bind, false);
|
||||
if (ret)
|
||||
return ret;
|
||||
ret = ACT_P_CREATED;
|
||||
|
Reference in New Issue
Block a user