projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Fix typo
[openvswitch]
/
lib
/
dpif.c
diff --git
a/lib/dpif.c
b/lib/dpif.c
index 667e07cefaa55f6aecd7c777b3ab64f5164e2629..29689667483a05d19af8290a0437346b0ef0f9dc 100644
(file)
--- a/
lib/dpif.c
+++ b/
lib/dpif.c
@@
-685,15
+685,16
@@
dpif_port_poll_wait(const struct dpif *dpif)
}
/* Extracts the flow stats for a packet. The 'flow' and 'packet'
}
/* Extracts the flow stats for a packet. The 'flow' and 'packet'
- * arguments must have been initialized through a call to flow_extract(). */
+ * arguments must have been initialized through a call to flow_extract().
+ * 'used' is stored into stats->used. */
void
dpif_flow_stats_extract(const struct flow *flow, const struct ofpbuf *packet,
void
dpif_flow_stats_extract(const struct flow *flow, const struct ofpbuf *packet,
- struct dpif_flow_stats *stats)
+
long long int used,
struct dpif_flow_stats *stats)
{
stats->tcp_flags = packet_get_tcp_flags(packet, flow);
stats->n_bytes = packet->size;
stats->n_packets = 1;
{
stats->tcp_flags = packet_get_tcp_flags(packet, flow);
stats->n_bytes = packet->size;
stats->n_packets = 1;
- stats->used =
time_msec()
;
+ stats->used =
used
;
}
/* Appends a human-readable representation of 'stats' to 's'. */
}
/* Appends a human-readable representation of 'stats' to 's'. */