devices: vhost: fix data offset on input 17/24517/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 24 Jan 2020 17:06:01 +0000 (18:06 +0100)
committerDamjan Marion <dmarion@me.com>
Mon, 27 Jan 2020 19:19:23 +0000 (19:19 +0000)
commit5ecc1e4d433a34845c7bfd761dc990413e6c321b
treef3a51e20f0a8a9def3e1160a3e68c65445fcd92b
parent864872ae1352dbee6aefac80a0ee7b60c271f58b
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>
src/vnet/devices/virtio/vhost_user_input.c