aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-05-28 20:56:43 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-06-03 17:56:56 +0000
commit369dc2c67a9deef54ca6dd637795e9d4a3a6fc6e (patch)
tree9f2aca2f5b8bbd3f03867b1945c875e5992de13d /src/vnet
parente0db09034a17347fe9c35557fb6b0afe46d82a2b (diff)
gso: fix flag for inner header
Type: fix Change-Id: Ic3fc488521636f7f7c9402a20db45fdb599adaae Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> (cherry picked from commit be03b5c15598131355da91967d05321c15fa1f24)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/gso/node.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/gso/node.c b/src/vnet/gso/node.c
index 3d33c73d3e5..c690835af48 100644
--- a/src/vnet/gso/node.c
+++ b/src/vnet/gso/node.c
@@ -651,6 +651,7 @@ vnet_gso_node_inline (vlib_main_t * vm,
generic_header_offset_t gho = { 0 };
u32 n_bytes_b0 = vlib_buffer_length_in_chain (vm, b[0]);
u32 n_tx_bytes = 0;
+ u32 inner_is_ip6 = is_ip6;
vnet_generic_header_offset_parser (b[0], &gho, is_l2,
is_ip4, is_ip6);
@@ -672,12 +673,12 @@ vnet_gso_node_inline (vlib_main_t * vm,
vnet_get_inner_header (b[0], &gho);
n_bytes_b0 -= gho.outer_hdr_sz;
- is_ip6 = (gho.gho_flags & GHO_F_IP6) != 0;
+ inner_is_ip6 = (gho.gho_flags & GHO_F_IP6) != 0;
}
n_tx_bytes =
tso_segment_buffer (vm, ptd, bi0, b[0], &gho, n_bytes_b0,
- is_ip6);
+ inner_is_ip6);
if (PREDICT_FALSE (n_tx_bytes == 0))
{