Skip to content

Commit

Permalink
ovn/actions: Improve OVN load-balancing performance.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
shettyg committed Sep 28, 2017
1 parent 880b52e commit eacd48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovn/lib/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eacd48e

Please sign in to comment.