devices: vhost: fix data offset on input 98/24598/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 24 Jan 2020 17:06:01 +0000 (18:06 +0100)
committerDave Barach <openvpp@barachs.net>
Wed, 29 Jan 2020 17:27:21 +0000 (17:27 +0000)
commit0d40954b42519994b6b8ae1769d7a628d5f839fb
tree6d784a0e8eaf4bc96428464dc03abd173d4672d8
parent95993c64a375887120466d750c750a27861fca96
devices: vhost: fix data offset on input

Regardless of whether the virtio_net_hdr is sent as a separate
descriptors or in the same descriptor as the data, we always want to
skip the header length - maybe moving to the next descriptor along the
way.

Type: fix

Change-Id: Iaa70aeb310e589639b20f8c7029aaa8d3ce5d307
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 5ecc1e4d433a34845c7bfd761dc990413e6c321b)
src/vnet/devices/virtio/vhost_user_input.c