summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-05-20 19:58:20 +0000
committerNeale Ranns <nranns@cisco.com>2020-05-21 07:09:46 +0000
commitbe955ef3160cfbfd02dd14bbc624b6d57c2324ea (patch)
tree9e460ff509b5778a5481a7fa3d9aef3be44bcf1b
parent63f9e7cc0e2c8ca370e320755a13f79d49616e60 (diff)
ip: Dual loop error in midchain chksum
Type: fix Change-Id: Idf7c80b7d81f796bd0512bca4276bcfcf2af241a Signed-off-by: Neale Ranns <nranns@cisco.com> (cherry picked from commit fc74697ed3b45499027b272332af786e8e7917bb)
-rw-r--r--src/vnet/ip/ip4_forward.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c
index 4691e27c3e3..231912bc5ca 100644
--- a/src/vnet/ip/ip4_forward.c
+++ b/src/vnet/ip/ip4_forward.c
@@ -2259,7 +2259,7 @@ ip4_rewrite_inline_with_gso (vlib_main_t * vm,
adj1->ia_cfg_index);
next[1] = next_index;
if (is_midchain)
- vnet_calc_checksums_inline (vm, b[0], 1 /* is_ip4 */ ,
+ vnet_calc_checksums_inline (vm, b[1], 1 /* is_ip4 */ ,
0 /* is_ip6 */ ,
0 /* with gso */ );
}