Bugfix: NetFPGA: Update pkt_count and elapsed time for 'permanent' flows

This commit is contained in:
Tatsuya Yabe authored and Glen Gibb committed 2010-05-03 15:54:38 -07:00
1 parent 310fd021cd
commit aa9401c8e6
1 file changed
+1 -2
+1 -2
View File
@@ -268,8 +268,7 @@ nf2_flow_timeout(struct sw_table *flowtab, struct list *deleted)
+ nf2_get_packet_count(dev, nf2flow);
flow->byte_count += nf2_get_byte_count(dev, nf2flow);
}
if (num_forw_packets > flow->packet_count
&& flow->idle_timeout != OFP_FLOW_PERMANENT) {
if (num_forw_packets > flow->packet_count) {
flow->packet_count = num_forw_packets;
flow->used = now;
}