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)
commitcef5ecf96b28dc91c4e9f398a336c578fb9e1a0c
tree34bf7a7c6ed21b21a2c9a480df00e1e7e3335e11
parent519c818e8fb646eef1e8bfedd18519bec47bc9a9
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