summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMrityunjay Kumar <kumarnitp@gmail.com>2019-09-05 05:10:25 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-07 20:49:18 +0000
commit69bafd77ebbfafc851938e13e3c11a7090b75303 (patch)
tree3e1f0340f5ed8e223582e5e9ea709746e3935ab7 /src
parentfd24264763b586ef09e8187e9291f1772b1335b5 (diff)
memif: 14 bytes extra overhead issue fixed.
Type: fix Signed-off-by: Mrityunjay Kumar <kumarnitp@gmail.com> Change-Id: I31cc5e853b57e285064647503231b251e5152d3f (cherry picked from commit 3f0579e8df831d42745e0b97191eb5e4bcffb011)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/memif/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c
index aef8ffbd0c2..dd8f9ba597e 100644
--- a/src/plugins/memif/node.c
+++ b/src/plugins/memif/node.c
@@ -596,7 +596,7 @@ memif_device_input_zc_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
d0 = &ring->desc[s0];
hb = b0 = vlib_get_buffer (vm, bi0);
b0->current_data = start_offset;
- b0->current_length = start_offset + d0->length;
+ b0->current_length = d0->length;
n_rx_bytes += d0->length;
if (0 && memif_desc_is_invalid (mif, d0, buffer_length))
@@ -619,7 +619,7 @@ memif_device_input_zc_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
/* current buffer */
b0 = vlib_get_buffer (vm, bi0);
b0->current_data = start_offset;
- b0->current_length = start_offset + d0->length;
+ b0->current_length = d0->length;
hb->total_length_not_including_first_buffer += d0->length;
n_rx_bytes += d0->length;