mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
cmap: Merge CMAP_FOR_EACH_SAFE into CMAP_FOR_EACH.
There isn't any significant downside to making cmap iteration "safe" all the time, so this drops the _SAFE variant. Similar changes to CMAP_CURSOR_FOR_EACH and CMAP_CURSOR_FOR_EACH_CONTINUE. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
@@ -925,7 +925,7 @@ dp_netdev_flow_flush(struct dp_netdev *dp)
|
||||
struct dp_netdev_flow *netdev_flow;
|
||||
|
||||
ovs_mutex_lock(&dp->flow_mutex);
|
||||
CMAP_FOR_EACH_SAFE (netdev_flow, node, &dp->flow_table) {
|
||||
CMAP_FOR_EACH (netdev_flow, node, &dp->flow_table) {
|
||||
dp_netdev_remove_flow(dp, netdev_flow);
|
||||
}
|
||||
ovs_mutex_unlock(&dp->flow_mutex);
|
||||
|
Reference in New Issue
Block a user