net: openvswitch: use hlist_for_each_entry_rcu instead of hlist_for_each_entry
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Wed, 25 Mar 2020 20:27:24 +0000 (04:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Apr 2020 00:48:12 +0000 (17:48 -0700)
commit64948427a63f49dd0ce403388d232f22cc1971a8
treecf65449b07bddf5df49abf0f03648de830d75ad0
parentc427bfec18f2190b8f4718785ee8ed2db4f84ee6
net: openvswitch: use hlist_for_each_entry_rcu instead of hlist_for_each_entry

The struct sw_flow is protected by RCU, when traversing them,
use hlist_for_each_entry_rcu.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Tested-by: Greg Rose <gvrose8192@gmail.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow_table.c