diff mbox series

[ovs-dev,10/14] northd: Omit alerts for SB lflow and mc-group table.

Message ID 20230513000356.2475960-11-hzhou@ovn.org
State Changes Requested
Headers show
Series ovn-northd incremental processing for VIF changes | expand

Checks

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

Commit Message

Han Zhou May 13, 2023, 12:03 a.m. UTC
The SB logical_flow table and multicast_group tables should be updated
by northd only. Omitting the alerts (making them write-only) avoids
unnecessary recompute triggered in northd.

Signed-off-by: Han Zhou <hzhou@ovn.org>
---
 northd/ovn-northd.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
index 3515b68a2e62..0b8bbfb95cf7 100644
--- a/northd/ovn-northd.c
+++ b/northd/ovn-northd.c
@@ -822,6 +822,14 @@  main(int argc, char *argv[])
     ovsdb_idl_omit_alert(ovnsb_idl_loop.idl, &sbrec_sb_global_col_nb_cfg);
     ovsdb_idl_omit_alert(ovnsb_idl_loop.idl, &sbrec_address_set_col_name);
     ovsdb_idl_omit_alert(ovnsb_idl_loop.idl, &sbrec_address_set_col_addresses);
+    for (size_t i = 0; i < SBREC_LOGICAL_FLOW_N_COLUMNS; i++) {
+        ovsdb_idl_omit_alert(ovnsb_idl_loop.idl,
+                             &sbrec_logical_flow_columns[i]);
+    }
+    for (size_t i = 0; i < SBREC_MULTICAST_GROUP_N_COLUMNS; i++) {
+        ovsdb_idl_omit_alert(ovnsb_idl_loop.idl,
+                             &sbrec_multicast_group_columns[i]);
+    }
 
     unixctl_command_register("sb-connection-status", "", 0, 0,
                              ovn_conn_show, ovnsb_idl_loop.idl);