lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 6 Sep 2016 08:03:33 -0400
From:   Jamal Hadi Salim <jhs@...atatu.com>
To:     Eric Dumazet <eric.dumazet@...il.com>
Cc:     davem@...emloft.net, netdev@...r.kernel.org, daniel@...earbox.net,
        xiyou.wangcong@...il.com
Subject: Re: [PATCH v3 net-next 1/1] net_sched: Introduce skbmod action

On 16-08-30 08:35 AM, Eric Dumazet wrote:

> synchronize_rcu() might bee to expensive if you plan to change actions
> hundred of times per second.
>
> You could instead add a 'struct rcu_head rcu;'  field in struct
> tcf_skbmod_params  (but make sure this is not exported to user space)
>
> Then :
>
>         if (ovr)
>                  spin_unlock_bh(&d->tcf_lock);
>          kfree_rcu(p_old, rcu);
>

Ok, working on this variant. Will post today or tommorow.

cheers,
jamal


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ