summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurucharan Shetty <guru@ovn.org>2017-09-28 00:48:08 -0700
committerGurucharan Shetty <guru@ovn.org>2017-09-28 03:19:48 -0700
commitc6825a67fa73fe71c788428cc2776b17811e4a66 (patch)
treea96bdb2579e763bc63fdd0c1c83a4cfc3e51602c
parentfb805ee81bd89037e1e21a8026af697e1719bdf5 (diff)
downloadopenvswitch-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.c2
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);