[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <66a91fd3-9d87-9e34-57f1-b44804760a65@mojatatu.com>
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