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:
@@ -485,12 +485,12 @@ classifier_destroy(struct classifier *cls)
|
||||
trie_destroy(&cls->tries[i].root);
|
||||
}
|
||||
|
||||
CMAP_FOR_EACH_SAFE (subtable, cmap_node, &cls->subtables_map) {
|
||||
CMAP_FOR_EACH (subtable, cmap_node, &cls->subtables_map) {
|
||||
destroy_subtable(cls, subtable);
|
||||
}
|
||||
cmap_destroy(&cls->subtables_map);
|
||||
|
||||
CMAP_FOR_EACH_SAFE (partition, cmap_node, &cls->partitions) {
|
||||
CMAP_FOR_EACH (partition, cmap_node, &cls->partitions) {
|
||||
ovsrcu_postpone(free, partition);
|
||||
}
|
||||
cmap_destroy(&cls->partitions);
|
||||
|
Reference in New Issue
Block a user