git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplify shash_find() followed by shash_add() into shash_add_once().
[sliver-openvswitch.git]
/
datapath
/
flow.c
diff --git
a/datapath/flow.c
b/datapath/flow.c
index
548c729
..
bf50e94
100644
(file)
--- a/
datapath/flow.c
+++ b/
datapath/flow.c
@@
-111,7
+111,7
@@
void flow_used(struct sw_flow *flow, struct sk_buff *skb)
}
spin_lock_bh(&flow->lock);
-
getnstimeofday
(&flow->used);
+
ktime_get_ts
(&flow->used);
flow->packet_count++;
flow->byte_count += skb->len;
flow->tcp_flags |= tcp_flags;