numam-dpdk/lib/librte_vhost
Jiayu Hu 729199397f vhost: fix corner case for enqueue operation
When performing enqueue operations on the split and packed rings,
if the reserved buffer length from the descriptor table exceeds
65535, the returned length by fill_vec_buf_split/_packed()
overflows. This patch is to avoid this corner case.

Fixes: f689586bc0 ("vhost: shadow used ring update")
Fixes: fd68b4739d ("vhost: use buffer vectors in dequeue path")
Fixes: 2f3225a7d6 ("vhost: add vector filling support for packed ring")
Fixes: 37f5e79a27 ("vhost: add shadow used ring support for packed rings")
Fixes: a922401f35 ("vhost: add Rx support for packed ring")
Fixes: ae999ce49d ("vhost: add Tx support for packed ring")
Cc: stable@dpdk.org

Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-09-28 01:41:03 +02:00
..
fd_man.c vhost: fix typo in comment 2018-05-14 22:31:03 +01:00
fd_man.h vhost: fix dead lock on closing in server mode 2018-05-14 22:29:59 +01:00
iotlb.c vhost: flush IOTLB cache on new mem table handling 2018-08-05 01:47:47 +02:00
iotlb.h vhost: flush IOTLB cache on new mem table handling 2018-08-05 01:47:47 +02:00
Makefile vhost: fix vhost interrupt support 2018-09-14 20:08:41 +02:00
meson.build vhost: fix vhost interrupt support 2018-09-14 20:08:41 +02:00
rte_vdpa.h vhost: support selective datapath 2018-04-14 00:40:21 +02:00
rte_vhost_crypto.h vhost/crypto: add public function implementation 2018-04-14 00:43:30 +02:00
rte_vhost_version.map lib: clear experimental version tag in linker scripts 2018-05-14 03:37:28 +02:00
rte_vhost.h vhost: support host notifier 2018-06-15 09:49:39 +02:00
socket.c vhost: advertise support in-order feature 2018-07-03 01:35:58 +02:00
vdpa.c vhost: support selective datapath 2018-04-14 00:40:21 +02:00
vhost_crypto.c vhost/crypto: use function to access mbuf private area 2018-07-13 23:14:41 +02:00
vhost_user.c vhost: rework message handling as a callback array 2018-09-28 01:41:03 +02:00
vhost_user.h vhost: support host notifier 2018-06-15 09:49:39 +02:00
vhost.c vhost: fix vhost interrupt support 2018-09-14 20:08:41 +02:00
vhost.h vhost: fix vhost interrupt support 2018-09-14 20:08:41 +02:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: fix corner case for enqueue operation 2018-09-28 01:41:03 +02:00