vhost: fix header copy to discontiguous desc buffer
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 30 Apr 2018 09:35:23 +0000 (11:35 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:03 +0000 (22:31 +0100)
commit8eac207d49b326ffaac7451ad3050d9cf2c0b361
tree70c83293f5b907250f4cf4268706007f20f070ec
parent55dfc375cf65eebe11b740960656b099b90c25fe
vhost: fix header copy to discontiguous desc buffer

In the loop to copy virtio-net header to the descriptor buffer,
destination pointer was incremented instead of the source
pointer.

Fixes: fb3815cc614d ("vhost: handle virtually non-contiguous buffers in Rx-mrg")
Fixes: 6727f5a739b6 ("vhost: handle virtually non-contiguous buffers in Rx")
Cc: stable@dpdk.org
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c