datapath: Don't query time for every packet.
[openvswitch] / datapath / flow.c
index 548c729afd69f8b52e4fd9e4c6bf6733feced348..95cc042803b817fe7d81ef4293980e579d166d28 100644 (file)
@@ -111,7 +111,7 @@ void flow_used(struct sw_flow *flow, struct sk_buff *skb)
        }
 
        spin_lock_bh(&flow->lock);
-       getnstimeofday(&flow->used);
+       flow->used = jiffies;
        flow->packet_count++;
        flow->byte_count += skb->len;
        flow->tcp_flags |= tcp_flags;