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 /vswitchd/bridge.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 'vswitchd/bridge.c')
-rw-r--r-- | vswitchd/bridge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 2976771ae..be093af1d 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -601,6 +601,9 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg) OFPROTO_FLOW_LIMIT_DEFAULT)); ofproto_set_max_idle(smap_get_int(&ovs_cfg->other_config, "max-idle", OFPROTO_MAX_IDLE_DEFAULT)); + ofproto_set_max_revalidator(smap_get_int(&ovs_cfg->other_config, + "max-revalidator", + OFPROTO_MAX_REVALIDATOR_DEFAULT)); ofproto_set_vlan_limit(smap_get_int(&ovs_cfg->other_config, "vlan-limit", LEGACY_MAX_VLAN_HEADERS)); ofproto_set_bundle_idle_timeout(smap_get_int(&ovs_cfg->other_config, |