vhost: fix log message for async dequeue
authorDavid Marchand <david.marchand@redhat.com>
Fri, 17 Jun 2022 05:40:03 +0000 (07:40 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 17 Jun 2022 14:01:21 +0000 (16:01 +0200)
Since the commit 02798b073520 ("vhost: improve virtio-net layer logs"),
vhost logs contain the socket path as a prefix.
Async dequeue path was copied from the sync dequeue path but a log
was incorrect.

Fixes: 84d5204310d7 ("vhost: support async dequeue for split ring")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/virtio_net.c

index 4a054a2..f7ced96 100644 (file)
@@ -3787,7 +3787,7 @@ rte_vhost_async_try_dequeue_burst(int vid, uint16_t queue_id,
 
                rarp_mbuf = rte_net_make_rarp_packet(mbuf_pool, &dev->mac);
                if (rarp_mbuf == NULL) {
-                       VHOST_LOG_DATA(ERR, "Failed to make RARP packet.\n");
+                       VHOST_LOG_DATA(ERR, "(%s) failed to make RARP packet.\n", dev->ifname);
                        count = 0;
                        goto out;
                }