[ovs-dev] [PATCH v6 2/6] datapath/flow: Fix ovs_flow_stats_get/clear RCU dereference.

Pravin Shelar pshelar at nicira.com
Tue Apr 1 22:17:55 UTC 2014


On Mon, Mar 31, 2014 at 11:18 AM, Jarno Rajahalme <jrajahalme at nicira.com> wrote:
> For ovs_flow_stats_get() using ovsl_dereference() was wrong, since
> flow dumps call this with RCU read lock.
>
> ovs_flow_stats_clear() is always called with ovs_mutex, so can use
> ovsl_dereference().
>
> Also, make the ovs_flow_stats_get() 'flow' argument const to make
> later patches cleaner.
>
> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>

Acked-by: Pravin B Shelar <pshelar at nicira.com>



More information about the dev mailing list