summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-07-21 11:34:22 +0300
committerBen Pfaff <blp@ovn.org>2019-08-21 15:28:05 -0700
commit48983050227d38e25de035ca248cb61177073fa8 (patch)
tree5bd54604975b6cdb3736aa896eb35a862e9ad0a6 /ofproto
parentb6bdc3cd730c2c47726f5913ba549b0284499f96 (diff)
downloadopenvswitch-48983050227d38e25de035ca248cb61177073fa8.tar.gz
upcall: Change should_revalidate to use max-revalidator value
Revalidate if dump duration was longer than half of max-revalidator timeout, instead of hardcoded 200msec value. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif-upcall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c
index b3598742b..00c8e6ddc 100644
--- a/ofproto/ofproto-dpif-upcall.c
+++ b/ofproto/ofproto-dpif-upcall.c
@@ -2040,7 +2040,7 @@ should_revalidate(const struct udpif *udpif, uint64_t packets,
return true;
}
- if (udpif->dump_duration < 200) {
+ if (udpif->dump_duration < ofproto_max_revalidator / 2) {
/* We are likely to handle full revalidation for the flows. */
return true;
}