patch 'vhost: log socket path on adding connection' has been queued to stable release 19.11.11

christian.ehrhardt at canonical.com christian.ehrhardt at canonical.com
Tue Nov 30 17:33:54 CET 2021


Hi,

FYI, your patch has been queued to stable release 19.11.11

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before December 10th 2021. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/cpaelzer/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/cpaelzer/dpdk-stable-queue/commit/8c58b366d1f66a59f9d01307dae1750ff768e5da

Thanks.

Christian Ehrhardt <christian.ehrhardt at canonical.com>

---
>From 8c58b366d1f66a59f9d01307dae1750ff768e5da Mon Sep 17 00:00:00 2001
From: Gaoxiang Liu <liugaoxiang at huawei.com>
Date: Tue, 7 Sep 2021 08:51:27 +0800
Subject: [PATCH] vhost: log socket path on adding connection

[ upstream commit e53084d84b0f2ae67df8d785e8d79df530b21a50 ]

Add log print of socket path in vhost_user_add_connection.
It's useful when adding a mass of socket connections,
because the information of every connection is clearer.

Fixes: 8f972312b8f4 ("vhost: support vhost-user")

Signed-off-by: Gaoxiang Liu <liugaoxiang at huawei.com>
Reviewed-by: Chenbo Xia <chenbo.xia at 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 dc3ee1e99d..dc70ce154f 100644
--- a/lib/librte_vhost/socket.c
+++ b/lib/librte_vhost/socket.c
@@ -241,7 +241,7 @@ vhost_user_add_connection(int fd, struct vhost_user_socket *vsocket)
 	if (vsocket->linearbuf)
 		vhost_enable_linearbuf(vid);
 
-	RTE_LOG(INFO, VHOST_CONFIG, "new device, handle is %d\n", vid);
+	RTE_LOG(INFO, VHOST_CONFIG, "new device, handle is %d, path is %s\n", vid, vsocket->path);
 
 	if (vsocket->notify_ops->new_connection) {
 		ret = vsocket->notify_ops->new_connection(vid);
-- 
2.34.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-11-30 16:50:07.829917289 +0100
+++ 0030-vhost-log-socket-path-on-adding-connection.patch	2021-11-30 16:50:05.614872238 +0100
@@ -1 +1 @@
-From e53084d84b0f2ae67df8d785e8d79df530b21a50 Mon Sep 17 00:00:00 2001
+From 8c58b366d1f66a59f9d01307dae1750ff768e5da Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e53084d84b0f2ae67df8d785e8d79df530b21a50 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -16 +17 @@
- lib/vhost/socket.c | 2 +-
+ lib/librte_vhost/socket.c | 2 +-
@@ -19,7 +20,7 @@
-diff --git a/lib/vhost/socket.c b/lib/vhost/socket.c
-index d6f9414c4d..c6548608a3 100644
---- a/lib/vhost/socket.c
-+++ b/lib/vhost/socket.c
-@@ -243,7 +243,7 @@ vhost_user_add_connection(int fd, struct vhost_user_socket *vsocket)
- 			dev->async_copy = 1;
- 	}
+diff --git a/lib/librte_vhost/socket.c b/lib/librte_vhost/socket.c
+index dc3ee1e99d..dc70ce154f 100644
+--- a/lib/librte_vhost/socket.c
++++ b/lib/librte_vhost/socket.c
+@@ -241,7 +241,7 @@ vhost_user_add_connection(int fd, struct vhost_user_socket *vsocket)
+ 	if (vsocket->linearbuf)
+ 		vhost_enable_linearbuf(vid);
@@ -27,2 +28,2 @@
--	VHOST_LOG_CONFIG(INFO, "new device, handle is %d\n", vid);
-+	VHOST_LOG_CONFIG(INFO, "new device, handle is %d, path is %s\n", vid, vsocket->path);
+-	RTE_LOG(INFO, VHOST_CONFIG, "new device, handle is %d\n", vid);
++	RTE_LOG(INFO, VHOST_CONFIG, "new device, handle is %d, path is %s\n", vid, vsocket->path);


More information about the stable mailing list