push.bytes = bytes;
push.used = used;
+ ofproto_rule_update_used(&rule->up, used);
+
action_xlate_ctx_init(&push.ctx, ofproto, flow, flow->vlan_tci, rule,
NULL);
push.ctx.resubmit_hook = push_resubmit;
size = packet->size;
if (execute_odp_actions(ofproto, flow, odp_actions->data,
odp_actions->size, packet)) {
- ofproto_rule_update_used(&rule->up, time_msec());
rule->packet_count++;
rule->byte_count += size;
- flow_push_stats(rule, flow, 1, size, rule->up.used);
+ flow_push_stats(rule, flow, 1, size, time_msec());
}
ofpbuf_delete(odp_actions);