]> git.droids-corp.org - dpdk.git/commitdiff
vhost: improve vDPA registration failure log
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 26 Jan 2022 09:55:03 +0000 (10:55 +0100)
committerChenbo Xia <chenbo.xia@intel.com>
Thu, 27 Jan 2022 08:45:01 +0000 (09:45 +0100)
This patch adds name of the device failing vDPA registration.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/vhost/vdpa.c

index 09ad5d866e0a24af8e2c0754d758d7f5f2a2b088..6df2230a671149fe2189a690c9d7b45842d28853 100644 (file)
@@ -82,8 +82,8 @@ rte_vdpa_register_device(struct rte_device *rte_dev,
                        !ops->get_protocol_features || !ops->dev_conf ||
                        !ops->dev_close || !ops->set_vring_state ||
                        !ops->set_features) {
-               VHOST_LOG_CONFIG(ERR,
-                               "Some mandatory vDPA ops aren't implemented\n");
+               VHOST_LOG_CONFIG(ERR, "(%s) Some mandatory vDPA ops aren't implemented\n",
+                               rte_dev->name);
                return NULL;
        }