projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c267938
)
Fix implicit declaration
author
Andrew Bays
<andrew.bays@gmail.com>
Tue, 31 Jul 2018 12:17:20 +0000
(08:17 -0400)
committer
Andrew Bays
<andrew.bays@gmail.com>
Tue, 31 Jul 2018 12:17:20 +0000
(08:17 -0400)
src/ovs_stats.c
patch
|
blob
|
history
diff --git
a/src/ovs_stats.c
b/src/ovs_stats.c
index
376f0ad
..
da74789
100644
(file)
--- a/
src/ovs_stats.c
+++ b/
src/ovs_stats.c
@@
-304,6
+304,21
@@
static void ovs_stats_submit_interfaces(bridge_list_t *bridge,
}
}
}
}
+static int ovs_stats_get_port_stat_value(port_list_t *port,
+ iface_counter index) {
+ if (port == NULL)
+ return 0;
+
+ int value = 0;
+
+ for (interface_list_t *iface = port->iface; iface != NULL;
+ iface = iface->next) {
+ value = value + iface->stats[index];
+ }
+
+ return value;
+}
+
static void ovs_stats_submit_port(bridge_list_t *bridge, port_list_t *port) {
char devname[PORT_NAME_SIZE_MAX * 2];
static void ovs_stats_submit_port(bridge_list_t *bridge, port_list_t *port) {
char devname[PORT_NAME_SIZE_MAX * 2];
@@
-417,21
+432,6
@@
static port_list_t *ovs_stats_get_port(const char *uuid) {
return NULL;
}
return NULL;
}
-static int ovs_stats_get_port_stat_value(port_list_t *port,
- iface_counter index) {
- if (port == NULL)
- return 0;
-
- int value = 0;
-
- for (interface_list_t *iface = port->iface; iface != NULL;
- iface = iface->next) {
- value = value + iface->stats[index];
- }
-
- return value;
-}
-
static port_list_t *ovs_stats_get_port_by_interface_uuid(const char *uuid) {
if (uuid == NULL)
return NULL;
static port_list_t *ovs_stats_get_port_by_interface_uuid(const char *uuid) {
if (uuid == NULL)
return NULL;