gso: fix buffers trace 56/22956/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 23 Oct 2019 13:47:22 +0000 (15:47 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 24 Oct 2019 16:07:37 +0000 (16:07 +0000)
When segmenting, new buffers must inherit the original buffer trace
handle.

Type: fix

Change-Id: Ibd1859a501b2862906dfc563b98652cfee5681da
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/gso/node.c

index 5998a4f..0690161 100644 (file)
@@ -79,6 +79,7 @@ tso_init_buf_from_template_base (vlib_buffer_t * nb0, vlib_buffer_t * b0,
   nb0->current_data = b0->current_data;
   nb0->total_length_not_including_first_buffer = 0;
   nb0->flags = VLIB_BUFFER_TOTAL_LENGTH_VALID | flags;
+  nb0->trace_handle = b0->trace_handle;
   clib_memcpy_fast (&nb0->opaque, &b0->opaque, sizeof (nb0->opaque));
   clib_memcpy_fast (vlib_buffer_get_current (nb0),
                    vlib_buffer_get_current (b0), length);