diff mbox series

[ovs-dev,1/6] controller: fix recompute pflows if sampling changes

Message ID 20221219161814.55422-2-amorenoz@redhat.com
State Superseded
Headers show
Series drop sampling: Fixes and optimizations | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Adrián Moreno Dec. 19, 2022, 4:18 p.m. UTC
The engine handler needs to return "false" in order to trigger a full
recompute of the physical flows.

Fixes: a42c808f30b4 ("northd: add drop sampling")
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
---
 controller/ovn-controller.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/controller/ovn-controller.c b/controller/ovn-controller.c
index f0fd24820..88eeee2d9 100644
--- a/controller/ovn-controller.c
+++ b/controller/ovn-controller.c
@@ -3779,10 +3779,11 @@  pflow_output_sb_sb_global_handler(struct engine_node *node, void *data)
 
     if (pfo->debug.collector_set_id != collector_set_id ||
         pfo->debug.obs_domain_id != obs_domain_id) {
-        engine_set_node_state(node, EN_UPDATED);
         pfo->debug.collector_set_id = collector_set_id;
         pfo->debug.obs_domain_id = obs_domain_id;
+        return false;
     }
+    engine_set_node_state(node, EN_UPDATED);
     return true;
 }