gso: fix buffers trace 48/23148/2
authorAndrew Yourtchenko <[email protected]>
Thu, 31 Oct 2019 15:44:02 +0000 (15:44 +0000)
committerAndrew Yourtchenko <[email protected]>
Sun, 3 Nov 2019 19:51:06 +0000 (19:51 +0000)
When segmenting, new buffers must inherit the original buffer trace
handle.

Type: fix

Change-Id: Ibd1859a501b2862906dfc563b98652cfee5681da
Signed-off-by: BenoĆ®t Ganne <[email protected]>
Signed-off-by: Andrew Yourtchenko <[email protected]>
src/vnet/interface_output.c

index 707b116..2aa3636 100644 (file)
@@ -262,6 +262,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);