Thread (27 messages) 27 messages, 5 authors, 2015-07-05

Re: [PATCH net-next 3/6] net_sched: act: make tcfg_pval non zero

flat view

From: Eric Dumazet <hidden>
Date: 2015-07-05 10:55:10

Thanks guys for the review.

For completeness, I'll add smp_wmb() here :

    gact->tcfg_pval    = max_t(u16, 1, p_parm->pval);
    smp_wmb();
    gact->tcfg_ptype   = p_parm->ptype;

And corresponding smp_rmb()

On Fri, Jul 3, 2015 at 12:49 PM, Jamal Hadi Salim [off-list ref] wrote:
On 07/02/15 09:07, Eric Dumazet wrote:
quoted
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.

Signed-off-by: Eric Dumazet <redacted>

Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>

cheers,
jamal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help