diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-07-21 11:34:21 +0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-08-21 15:28:01 -0700 |
commit | b6bdc3cd730c2c47726f5913ba549b0284499f96 (patch) | |
tree | 481c95d7e2e98e41fd8637b3a3fd2fc7564d68cb /ofproto/ofproto-dpif-upcall.c | |
parent | c194367cbf86cce4faad9e4126ee0529f37c3690 (diff) | |
download | openvswitch-b6bdc3cd730c2c47726f5913ba549b0284499f96.tar.gz |
upcall: Configure datapath max-revalidator through ovs-vsctl.
This patch adds a new configuration option, "max-revalidator" to the
Open_vSwitch "other-config" column. This sets maximum allowed ravalidator
timeout. Actual timeout value is determined at runtime as minimum of
"max-idle" and "max-revalidator".
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/ofproto-dpif-upcall.c')
-rw-r--r-- | ofproto/ofproto-dpif-upcall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 731ee7280..b3598742b 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-dpif-upcall.c @@ -978,7 +978,8 @@ udpif_revalidator(void *arg) duration); } - poll_timer_wait_until(start_time + MIN(ofproto_max_idle, 500)); + poll_timer_wait_until(start_time + MIN(ofproto_max_idle, + ofproto_max_revalidator)); seq_wait(udpif->reval_seq, last_reval_seq); latch_wait(&udpif->exit_latch); latch_wait(&udpif->pause_latch); |