diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-07-21 11:34:23 +0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-08-21 15:28:07 -0700 |
commit | e31ecf5885bdb578947296913177d10e9cb057d9 (patch) | |
tree | 43582c198d15c0a1776757ab712b0aeb5d4fe932 /ofproto/ofproto-dpif-upcall.c | |
parent | 48983050227d38e25de035ca248cb61177073fa8 (diff) | |
download | openvswitch-e31ecf5885bdb578947296913177d10e9cb057d9.tar.gz |
upcall: Configure datapath min-revalidate-pps through ovs-vsctl.
This patch adds a new configuration option, "min-revalidate-pps" to the
Open_vSwitch "other-config" column. This sets minimum pps that flow must
have in order to be revalidated when revalidation duration exceeds half of
max-revalidator config variable.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 00c8e6ddc..9e58a4dcf 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-dpif-upcall.c @@ -2060,8 +2060,8 @@ should_revalidate(const struct udpif *udpif, uint64_t packets, duration = now - used; metric = duration / packets; - if (metric < 200) { - /* The flow is receiving more than ~5pps, so keep it. */ + if (metric < 1000 / ofproto_min_revalidate_pps) { + /* The flow is receiving more than min-revalidate-pps, so keep it. */ return true; } return false; |