diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2020-12-03 11:35:23 +0100 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2020-12-04 16:57:08 +0000 |
commit | a17381a41d17fd813df77b97102b18127731b013 (patch) | |
tree | cd38a023699b7944b897e115f7a7e6c395ec26c4 /src/vnet/devices/virtio | |
parent | 01e94db84f0f030f22a2e16b389ef24133ab6923 (diff) |
virtio: fix the len offset
Type: fix
Change-Id: I8ce1df5c97941fb645b33476db9cfc74f1395b15
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio')
-rw-r--r-- | src/vnet/devices/virtio/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |