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>
Showing
Please register or sign in to comment