]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3a0ceccb1ea72c9f0c1777a504b019eb433b968
treecf65449b07bddf5df49abf0f03648de830d75ad0
parent73b4c34f988e3f72bd1818113ee871c979e4ebb7
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