From patchwork Thu Sep 29 12:22:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Matz X-Patchwork-Id: 117142 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E50BCA00C4; Thu, 29 Sep 2022 14:22:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D7E104114E; Thu, 29 Sep 2022 14:22:36 +0200 (CEST) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mails.dpdk.org (Postfix) with ESMTP id B97FB4114E for ; Thu, 29 Sep 2022 14:22:35 +0200 (CEST) Received: by mail-wr1-f53.google.com with SMTP id u10so1805218wrq.2 for ; Thu, 29 Sep 2022 05:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=4UIHlJxM0YdtUTlKFIfnSw+DZ4j5NvJCwqnWb2pobQw=; b=XMbZ11MTCPY2L70Q3Gu6+WKdQL4/auhGSd+tKrgkJ6euAss5bSjktUHf9zKoK0KzEN KdsVIgGDzZa3BnRKPTk/H0+UZCDUB+ol9UxUwncvoHG/4mEXApfZ87RyhJWHPOfnwmO8 RtkqdMF8e3e5ErsCqoM/oXmZiUFx8wSK7qaSmbq4Z5T3EC6nJaglD7rDaTT5grH42PGf JOae3w239KolzZu7cEIJ/Xy5DmqbQd1yrtnei3dQLC7KPpPqLAnFBrabRnjRjjG7BzNr ko2L2h4BwQNnxD0UDF2O8a+qr/v1efzFE11OhdAH4/WYJy1aRgxQ4txlE3c8a6ARQCCV XwMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=4UIHlJxM0YdtUTlKFIfnSw+DZ4j5NvJCwqnWb2pobQw=; b=63VWNBOxdod71X83kJ0drSH/RT2TCD8X3EbX6OphT2LLnjj0jXjZJK+TukEbaZFn8Q kbYHvJsAqNXOpYm7GMlSIfh7QPZ6ESf2b1iPp1u6Iohf2Rk0V5+GA07P5G+cshbu/Oii JUMsuYNJuHUgmmjY7SwiMCrWaQ1QqKQK/6ab0v6rx71ci8oYzhf8dFlU0869RstwYisX EZMJ1vwYdfOw6HFVDeCldFIU1fe9juS9ExHPU7UoNHC63zoARcO0BF/dUg1lU17OYrI8 ZNEC4vF38qXLHRzqPFZ4iUKfUTqHdgpY+Zc05VXOgKWLHekc1gkvtTnz27X3H78tZLkz gfBw== X-Gm-Message-State: ACrzQf3KnYd8EW3HK4L0WL6WbtLHrCq3R7F/2Fq5q9FEV8CAAithl9iA NGGRgabc+ZVhm+1hShjZngG61+wdwBSiYm8F X-Google-Smtp-Source: AMsMyM58yJv9Vp51amJ3rHfWtkUjBgC8bZRnhOKNRxmV7SoCCTS64H5dC8TNOCesZ8bNhYPiodX1xA== X-Received: by 2002:adf:e4c5:0:b0:22c:c92b:27ef with SMTP id v5-20020adfe4c5000000b0022cc92b27efmr2159777wrm.246.1664454155530; Thu, 29 Sep 2022 05:22:35 -0700 (PDT) Received: from gojira.dev.6wind.com ([185.13.181.2]) by smtp.gmail.com with ESMTPSA id ck16-20020a5d5e90000000b0022cc4b7861fsm4800502wrb.97.2022.09.29.05.22.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 05:22:35 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Cc: Maxime Coquelin , Chenbo Xia Subject: [PATCH] net/virtio: add queue and port ID in some logs Date: Thu, 29 Sep 2022 14:22:28 +0200 Message-Id: <20220929122228.1170-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add the queue id and/or the port id in some logs, so it is easier to understand what happens. Signed-off-by: Olivier Matz Reviewed-by: Maxime Coquelin --- drivers/net/virtio/virtio_ethdev.c | 6 ++++-- drivers/net/virtio/virtio_rxtx.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 7e07270a8b..44811c299b 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -2807,7 +2807,8 @@ virtio_dev_start(struct rte_eth_dev *dev) return -EINVAL; } - PMD_INIT_LOG(DEBUG, "nb_queues=%d", nb_queues); + PMD_INIT_LOG(DEBUG, "nb_queues=%d (port=%d)", nb_queues, + dev->data->port_id); for (i = 0; i < dev->data->nb_rx_queues; i++) { vq = virtnet_rxq_to_vq(dev->data->rx_queues[i]); @@ -2821,7 +2822,8 @@ virtio_dev_start(struct rte_eth_dev *dev) virtqueue_notify(vq); } - PMD_INIT_LOG(DEBUG, "Notified backend at initialization"); + PMD_INIT_LOG(DEBUG, "Notified backend at initialization (port=%d)", + dev->data->port_id); for (i = 0; i < dev->data->nb_rx_queues; i++) { vq = virtnet_rxq_to_vq(dev->data->rx_queues[i]); diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index 4795893ec7..f8a9ee5cdb 100644 --- a/drivers/net/virtio/virtio_rxtx.c +++ b/drivers/net/virtio/virtio_rxtx.c @@ -793,7 +793,8 @@ virtio_dev_rx_queue_setup_finish(struct rte_eth_dev *dev, uint16_t queue_idx) vq_update_avail_idx(vq); } - PMD_INIT_LOG(DEBUG, "Allocated %d bufs", nbufs); + PMD_INIT_LOG(DEBUG, "Allocated %d bufs (port=%d queue=%d)", nbufs, + dev->data->port_id, queue_idx); VIRTQUEUE_DUMP(vq);