patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] vhost: fix dequeue_zero_zopy cannot be enabled
@ 2020-05-12  9:51 Xuan Ding
  2020-05-13  2:14 ` [dpdk-stable] [PATCH v2] vhost: fix zero-copy " Xuan Ding
  0 siblings, 1 reply; 6+ messages in thread
From: Xuan Ding @ 2020-05-12  9:51 UTC (permalink / raw)
  To: maxime.coquelin, zhihong.wang, xiaolong.ye; +Cc: dev, Xuan Ding, stable

Use flag instead of vsocket->is_server to determine whether vhost is
in client mode. Because vsocket->is_server is not ready yet.

Cc: stable@dpdk.org

Signed-off-by: Xuan Ding <xuan.ding@intel.com>
---
 lib/librte_vhost/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_vhost/socket.c b/lib/librte_vhost/socket.c
index bb8d0d780..0a66ef976 100644
--- a/lib/librte_vhost/socket.c
+++ b/lib/librte_vhost/socket.c
@@ -926,7 +926,7 @@ rte_vhost_driver_register(const char *path, uint64_t flags)
 			ret = -1;
 			goto out_mutex;
 		}
-		if (!vsocket->is_server) {
+		if ((flags & RTE_VHOST_USER_CLIENT) != 0) {
 			VHOST_LOG_CONFIG(ERR,
 			"error: zero copy is incompatible with vhost client mode\n");
 			ret = -1;
-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-19 13:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12  9:51 [dpdk-stable] [PATCH] vhost: fix dequeue_zero_zopy cannot be enabled Xuan Ding
2020-05-13  2:14 ` [dpdk-stable] [PATCH v2] vhost: fix zero-copy " Xuan Ding
2020-05-19  6:28   ` Ye Xiaolong
2020-05-19  7:13     ` [dpdk-stable] [dpdk-dev] " Ye Xiaolong
2020-05-19 13:43       ` Ferruh Yigit
2020-05-19  7:03   ` Wang, Yinan

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ https://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git