diff options
author | Eric Dumazet <edumazet@google.com> | 2015-07-06 14:18:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-08 22:50:41 +0200 |
commit | 519c818e8fb646eef1e8bfedd18519bec47bc9a9 (patch) | |
tree | d1c6f6dbe8833fa88e009c2bbae239d4ef4d1e26 /net/sched/act_vlan.c | |
parent | net: sched: extend percpu stats helpers (diff) | |
download | linux-519c818e8fb646eef1e8bfedd18519bec47bc9a9.tar.xz linux-519c818e8fb646eef1e8bfedd18519bec47bc9a9.zip |
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>
Diffstat (limited to 'net/sched/act_vlan.c')
-rw-r--r-- | net/sched/act_vlan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/act_vlan.c b/net/sched/act_vlan.c index d735ecf0b1a7..796785e0bf96 100644 --- a/net/sched/act_vlan.c +++ b/net/sched/act_vlan.c @@ -116,7 +116,8 @@ static int tcf_vlan_init(struct net *net, struct nlattr *nla, action = parm->v_action; if (!tcf_hash_check(parm->index, a, bind)) { - ret = tcf_hash_create(parm->index, est, a, sizeof(*v), bind); + ret = tcf_hash_create(parm->index, est, a, sizeof(*v), + bind, false); if (ret) return ret; |