From: Mohsin Kazmi Date: Thu, 3 Dec 2020 10:35:23 +0000 (+0100) Subject: virtio: fix the len offset X-Git-Tag: v21.06-rc0~64 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=a17381a41d17fd813df77b97102b18127731b013;p=vpp.git virtio: fix the len offset Type: fix Change-Id: I8ce1df5c97941fb645b33476db9cfc74f1395b15 Signed-off-by: Mohsin Kazmi --- diff --git a/src/vnet/devices/virtio/node.c b/src/vnet/devices/virtio/node.c index a45b52c2eab..1e75ca47586 100644 --- a/src/vnet/devices/virtio/node.c +++ b/src/vnet/devices/virtio/node.c @@ -472,8 +472,8 @@ virtio_device_input_gso_inline (vlib_main_t * vm, vlib_node_runtime_t * node, { increment_last (last, packed, vring); u16 cslot = virtio_get_slot_id (vring, packed, last, mask); - u16 clen = - virtio_get_len (vring, packed, hdr_sz, last, mask); + /* hdr size is 0 after 1st packet in chain buffers */ + u16 clen = virtio_get_len (vring, packed, 0, last, mask); u32 cbi = vring->buffers[cslot]; cb = vlib_get_buffer (vm, cbi);