summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2021-10-14 13:46:14 +0200
committerIlya Maximets <i.maximets@ovn.org>2021-11-04 23:13:13 +0100
commit066741d9c5ca85e46b0b69542a2228b8a6278f77 (patch)
tree82b2083d9f8fae3aaceb5a84ce46b23afefe6b41 /vswitchd
parentc5d384f77bed0e3f540987314072166bfcbff1a2 (diff)
downloadopenvswitch-066741d9c5ca85e46b0b69542a2228b8a6278f77.tar.gz
ovsdb-idl: Add memory report function.
Added new function to return memory usage statistics for database objects inside IDL. Statistics similar to what ovsdb-server reports. Not counting _Server database as it should be small, hence doesn't worth adding extra code to the ovsdb-cs module. Can be added later if needed. ovs-vswitchd is a user in OVS, but this API will be mostly useful for OVN daemons. Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Han Zhou <hzhou@ovn.org> Acked-by: Dumitru Ceara <dceara@redhat.com>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index c790a56ad..5223aa897 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -3423,6 +3423,8 @@ bridge_get_memory_usage(struct simap *usage)
HMAP_FOR_EACH (br, node, &all_bridges) {
ofproto_get_memory_usage(br->ofproto, usage);
}
+
+ ovsdb_idl_get_memory_usage(idl, usage);
}
/* QoS unixctl user interface functions. */