aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface_output.c
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2019-10-31 15:44:02 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-11-03 19:51:06 +0000
commiteeaf6e761423282a2308a51eed76873b758f1bbd (patch)
tree9aead497ced00595e5e54b521e7db5fa7bef89dd /src/vnet/interface_output.c
parent5b055af741ab89cd3be7961ebd88a59dfc2c4969 (diff)
gso: fix buffers trace
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> Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/vnet/interface_output.c')
-rw-r--r--src/vnet/interface_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/interface_output.c b/src/vnet/interface_output.c
index 707b1167a48..2aa363608c4 100644
--- a/src/vnet/interface_output.c
+++ b/src/vnet/interface_output.c
@@ -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);