[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <541B0AD1.9070600@gmail.com>
Date: Thu, 18 Sep 2014 09:39:45 -0700
From: John Fastabend <john.fastabend@...il.com>
To: Cong Wang <cwang@...pensource.com>
CC: Cong Wang <xiyou.wangcong@...il.com>,
David Miller <davem@...emloft.net>,
Eric Dumazet <eric.dumazet@...il.com>,
netdev <netdev@...r.kernel.org>,
Jamal Hadi Salim <jhs@...atatu.com>
Subject: Re: [net-next PATCH 2/2] net: sched: cls_u32 changes to knode must
appear atomic to readers
On 09/18/2014 09:28 AM, Cong Wang wrote:
> On Wed, Sep 17, 2014 at 5:06 PM, John Fastabend
> <john.fastabend@...il.com> wrote:
>>
>> Sure how about this,
>>
>> /* u32_delete_key_rcu_pf should be called when free'ing a copied
>> * version of a tc_u_knode obtained from u32_init_knode(). When
>> * copies are obtained from u32_init_knode() the statistics are
>> * shared between the old and new copies to allow readers to
>> * continue to update the statistics during the copy. To support
>> * this the u32_delete_key_rcu_pf variant does not free the percpu
>> * statistics.
>> */
>>
>
> Looks good, but why you pick the name u32_delete_key_rcu_pf()?
> It sounds like you will free pf, but actually you will skip freeing pf. :)
>
hmm it was just the first thing that came to mind.
I'll rename the two calls to make it clear when reading the code.
Thanks,
John
--
John Fastabend Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists