Commit 270de5d
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: 0a8f6be ("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>1 parent f8d457e commit 270de5d
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7820 | 7820 | | |
7821 | 7821 | | |
7822 | 7822 | | |
| 7823 | + | |
| 7824 | + | |
| 7825 | + | |
| 7826 | + | |
| 7827 | + | |
| 7828 | + | |
7823 | 7829 | | |
7824 | 7830 | | |
7825 | 7831 | | |
| |||
7985 | 7991 | | |
7986 | 7992 | | |
7987 | 7993 | | |
7988 | | - | |
7989 | | - | |
7990 | | - | |
7991 | | - | |
7992 | | - | |
7993 | | - | |
7994 | | - | |
7995 | | - | |
7996 | | - | |
7997 | 7994 | | |
7998 | 7995 | | |
7999 | 7996 | | |
| |||
0 commit comments