vhost: make buffer vector for scatter Rx local
authorIlya Maximets <i.maximets@samsung.com>
Mon, 2 May 2016 18:30:41 +0000 (02:30 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 22 Jun 2016 07:44:21 +0000 (09:44 +0200)
commit7fd5dde987cf1ffa709516a405ff4e7db13053fa
treea36b9127465425218def8ba4ea83cd9420c0df66
parente197bd630a5cd3ed40e73f914837a03e2c6b3098
vhost: make buffer vector for scatter Rx local

Array of buf_vector's is just an array for temporary storing information
about available descriptors. It used only locally in virtio_dev_merge_rx()
and there is no reason for that array to be shared.

Fix that by allocating local buf_vec inside virtio_dev_merge_rx().

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
lib/librte_vhost/vhost-net.h
lib/librte_vhost/vhost_rxtx.c