From: Ethan Jackson Date: Thu, 20 Sep 2012 02:21:06 +0000 (-0700) Subject: bridge: Omit alerts on the cfm_remote_opstate column. X-Git-Tag: sliver-openvswitch-1.8.90-0~1^2~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4104aaf1b850692cf8db2d05a82f872f6c127925;hp=c6100d92142bc3dd325180cb4e10553eb4341731;p=sliver-openvswitch.git bridge: Omit alerts on the cfm_remote_opstate column. This column should be write only, otherwise every call to update it has to make a trip to the database. Since this column is updated every time through the run loop as part of refresh_instant_stats(), this patch fixes a significant performance degradation. Signed-off-by: Ethan Jackson --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 53bb7b905..940e5e7f5 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -305,6 +305,7 @@ bridge_init(const char *remote) ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_cfm_fault_status); ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_cfm_remote_mpids); ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_cfm_health); + ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_cfm_remote_opstate); ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_lacp_current); ovsdb_idl_omit(idl, &ovsrec_interface_col_external_ids);