Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
01e94db
)
virtio: fix the len offset
49/30249/2
author
Mohsin Kazmi
<sykazmi@cisco.com>
Thu, 3 Dec 2020 10:35:23 +0000
(11:35 +0100)
committer
Beno�t Ganne
<bganne@cisco.com>
Fri, 4 Dec 2020 16:57:08 +0000
(16:57 +0000)
Type: fix
Change-Id: I8ce1df5c97941fb645b33476db9cfc74f1395b15
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vnet/devices/virtio/node.c
patch
|
blob
|
history
diff --git
a/src/vnet/devices/virtio/node.c
b/src/vnet/devices/virtio/node.c
index
a45b52c
..
1e75ca4
100644
(file)
--- 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);