2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-21 17:37:37 +00:00
ovs/ofproto
Eli Britstein 270de5dfb8 ofproto: Move group-modify to mod_start instead of mod_finish.
Upon modifying a group, the following steps occur:
1. ofproto_group_mod_start()->modify_group_start():
   Find an old group object, create a new one.
2. ofproto_bump_tables_version()
3. ofproto_group_mod_finish():
   Modify the new group object with buckets etc.

At step #3, the new group object is already in use by revalidators,
that may read incorrect data while being modified.

Instead, move the group modification of the new object to step #1.

Fixes: 0a8f6beb54ab ("ofproto-dpif: Fix dp_hash mapping after select group modification.")
Acked-by: Gaetan Rivet <gaetanr@nvidia.com>
Acked-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Eli Britstein <elibr@nvidia.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2025-07-22 20:06:34 +02:00
..
2024-07-15 11:15:30 +02:00
2021-06-22 21:29:57 +02:00