numam-dpdk/lib/librte_vhost
Xuan Ding 22fa1bcbcb vhost: fix zero-copy server mode
This patch fixes the situation where vhost-user cannot start as server
with dequeue_zero_copy enabled.

Using flag instead of vsocket->is_server to determine whether vhost-user
is in client mode. Because vsocket->is_server is not ready at this time.

Fixes: 715070ea10 ("vhost: prevent zero-copy with incompatible client mode")
Cc: stable@dpdk.org

Signed-off-by: Xuan Ding <xuan.ding@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
Tested-by: Yinan Wang <yinan.wang@intel.com>
2020-05-19 17:12:17 +02:00
..
fd_man.c vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
fd_man.h vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
iotlb.c vhost: make IOTLB cache name unique among processes 2020-04-21 13:57:07 +02:00
iotlb.h vhost: replace IOTLB license with SPDX tag 2019-08-05 16:06:11 +02:00
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_vdpa.h vhost: prefix vDPA enum value for PCI address type 2020-04-21 13:57:07 +02:00
rte_vhost_crypto.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_vhost_version.map vhost: support config change slave message 2020-01-17 19:46:26 +01:00
rte_vhost.h fix same typo in multiple places 2020-05-19 15:55:57 +02:00
socket.c vhost: fix zero-copy server mode 2020-05-19 17:12:17 +02:00
vdpa.c vhost: prefix vDPA enum value for PCI address type 2020-04-21 13:57:07 +02:00
vhost_crypto.c vhost/crypto: validate keys lengths 2020-05-18 15:22:34 +02:00
vhost_user.c vhost: fix potential fd leak 2020-05-18 15:22:42 +02:00
vhost_user.h replace packed attributes 2020-04-16 18:16:46 +02:00
vhost.c vhost: protect log address translation in IOTLB update 2020-02-14 12:42:13 +01:00
vhost.h vhost: use binary search in address conversion 2020-05-05 15:54:26 +02:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: handle mbuf allocation failure 2020-05-18 20:35:57 +02:00