aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/gso
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-10-23 15:47:22 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-24 16:07:37 +0000
commit94afc9391d0588608d67de717a927e9a50349d3a (patch)
tree109f81cc3fef748dd4b2221b5bd2fee9335adf42 /src/vnet/gso
parent002723c45b042a270e0ab521b4b88da3d2d7ef55 (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>
Diffstat (limited to 'src/vnet/gso')
-rw-r--r--src/vnet/gso/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/gso/node.c b/src/vnet/gso/node.c
index 5998a4f8387..069016147d4 100644
--- a/src/vnet/gso/node.c
+++ b/src/vnet/gso/node.c
@@ -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);