projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3571d1
)
upcall: Avoid divide-by-zero calculating flow limit
author
Joe Stringer
<joestringer@nicira.com>
Tue, 28 Jan 2014 21:04:35 +0000
(13:04 -0800)
committer
Ethan Jackson
<ethan@nicira.com>
Sat, 8 Feb 2014 23:28:03 +0000
(15:28 -0800)
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif-upcall.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto-dpif-upcall.c
b/ofproto/ofproto-dpif-upcall.c
index
aa39366
..
01793c7
100644
(file)
--- a/
ofproto/ofproto-dpif-upcall.c
+++ b/
ofproto/ofproto-dpif-upcall.c
@@
-596,7
+596,7
@@
udpif_flow_dumper(void *arg)
ovs_mutex_unlock(&revalidator->mutex);
}
- duration =
time_msec() - start_time
;
+ duration =
MAX(time_msec() - start_time, 1)
;
udpif->dump_duration = duration;
atomic_read(&udpif->flow_limit, &flow_limit);
if (duration > 2000) {