diff options
author | Gurucharan Shetty <guru@ovn.org> | 2017-09-28 00:48:08 -0700 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2017-09-28 03:19:48 -0700 |
commit | c6825a67fa73fe71c788428cc2776b17811e4a66 (patch) | |
tree | a96bdb2579e763bc63fdd0c1c83a4cfc3e51602c | |
parent | fb805ee81bd89037e1e21a8026af697e1719bdf5 (diff) | |
download | openvswitch-c6825a67fa73fe71c788428cc2776b17811e4a66.tar.gz |
ovn/actions: Improve OVN load-balancing performance.
Currently, we send the first packet of every new connection
to userspace to figure out the target IP address of load-balancing.
With this patch, we use the selection method of dp_hash to prevent
that situation.
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
-rw-r--r-- | ovn/lib/actions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ovn/lib/actions.c b/ovn/lib/actions.c index d0d73b69c..c9876436d 100644 --- a/ovn/lib/actions.c +++ b/ovn/lib/actions.c @@ -983,7 +983,7 @@ encode_CT_LB(const struct ovnact_ct_lb *cl, : MFF_LOG_DNAT_ZONE - MFF_REG0; struct ds ds = DS_EMPTY_INITIALIZER; - ds_put_format(&ds, "type=select"); + ds_put_format(&ds, "type=select,selection_method=dp_hash"); BUILD_ASSERT(MFF_LOG_CT_ZONE >= MFF_REG0); BUILD_ASSERT(MFF_LOG_CT_ZONE < MFF_REG0 + FLOW_N_REGS); |