]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: act_gact: make tcfg_pval non zero
authorEric Dumazet <edumazet@google.com>
Mon, 6 Jul 2015 12:18:05 +0000 (05:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 20:50:42 +0000 (13:50 -0700)
commita9e5b9c9c9575c380ec4b54ecb19305a52808312
tree34bf7a7c6ed21b21a2c9a480df00e1e7e3335e11
parent62206eff9f828abaa58b90755c8fcc257f4dd0fa
net_sched: act_gact: make tcfg_pval non zero

First step for gact RCU operation :

Instead of testing if tcfg_pval is zero or not, just make it 1.

No change in behavior, but slightly faster code.

The smp_rmb()/smp_wmb() barriers, while not strictly needed at this
stage are added for upcoming spinlock removal.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: 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>
net/sched/act_gact.c