Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
858856d
)
cnat: Fix backend LB
49/29449/2
author
Nathan Skrzypczak
<nathan.skrzypczak@gmail.com>
Wed, 14 Oct 2020 11:26:57 +0000
(13:26 +0200)
committer
Dave Barach
<openvpp@barachs.net>
Wed, 14 Oct 2020 13:33:35 +0000
(13:33 +0000)
Type: fix
Change-Id: I4ea263270bcc38e505e88d512acacef7439f3823
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
src/plugins/cnat/cnat_node_vip.c
patch
|
blob
|
history
diff --git
a/src/plugins/cnat/cnat_node_vip.c
b/src/plugins/cnat/cnat_node_vip.c
index
224dd1c
..
5c1e0e4
100644
(file)
--- a/
src/plugins/cnat/cnat_node_vip.c
+++ b/
src/plugins/cnat/cnat_node_vip.c
@@
-160,7
+160,7
@@
cnat_vip_inline (vlib_main_t * vm,
hash_c0 = (AF_IP4 == ctx->af ?
ip4_compute_flow_hash (ip4, lb0->lb_hash_config) :
ip6_compute_flow_hash (ip6, lb0->lb_hash_config));
- bucket0 = hash_c0
& lb0->lb_n_buckets_minus_1
;
+ bucket0 = hash_c0
% lb0->lb_n_buckets
;
dpo0 = load_balance_get_fwd_bucket (lb0, bucket0);
/* add the session */