]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Fix ovs_flow_stats_get/clear RCU dereference.
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 5 May 2014 21:17:28 +0000 (14:17 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 22 May 2014 23:27:35 +0000 (16:27 -0700)
commitf636f8a644330505ba09bc050c401247ad27c377
treea7234f03654ede89bb75297de731d79126556daf
parent3f737444430d151ec5f7943993726d7897a3defd
openvswitch: Fix ovs_flow_stats_get/clear RCU dereference.

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@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
net/openvswitch/flow.c
net/openvswitch/flow.h