diff options
author | Ben Pfaff <blp@nicira.com> | 2012-04-13 14:15:15 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-04-18 20:28:09 -0700 |
commit | 8017806940cfeaba963d6a6f51ae7573cbea6792 (patch) | |
tree | 7ea5ecc2e6aae21bae6bb7ccc58f68b11b2594fa | |
parent | 8d25d9a254786eeb164f4fe4cef28b07378afaa2 (diff) |
ofproto-dpif: Keep subfacet "used" times more up-to-date.
handle_flow_miss() didn't update subfacet "used" times for packets
processed by userspace. This commit fixes the problem.
Found by inspection. I didn't verify the bug in testing.
Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r-- | lib/dpif.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -678,10 +678,10 @@ void dpif_flow_stats_extract(const struct flow *flow, const struct ofpbuf *packet, struct dpif_flow_stats *stats) { - memset(stats, 0, sizeof(*stats)); stats->tcp_flags = packet_get_tcp_flags(packet, flow); stats->n_bytes = packet->size; stats->n_packets = 1; + stats->used = time_msec(); } /* Appends a human-readable representation of 'stats' to 's'. */ |