From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0FD13A0556; Mon, 17 Oct 2022 10:00:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E949F4021D; Mon, 17 Oct 2022 10:00:50 +0200 (CEST) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mails.dpdk.org (Postfix) with ESMTP id B425D40143 for ; Mon, 17 Oct 2022 10:00:49 +0200 (CEST) Received: by mail-wr1-f41.google.com with SMTP id f11so17186491wrm.6 for ; Mon, 17 Oct 2022 01:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E5szG8LBnOcxBBZnWmgeIAUb2+uhXoYO8uVN9yiw6pE=; b=I/8OSWSTnIv4eaWlUnctrYZY5uLqwrBnRtD3Dpgdpz3Tls9DswzbqxMpv0jXR6hwzc 0oHzfFSIvOfgxYOPmXUtk98gjv8g7S06KP7dXTXNVOEJLgtOpkSBru3b2Bq5OBReetrC QYktZoUh0zp20QJZgrQbMD/PcxpuW3B+adrewPqO75A/KNR2ROQBYDtHeoJTdTezX6rn 7vhV/f/+N7VCx5/3gf+I5ndNR2HrGuOFY2OicWqpR0ACsPG79LiJVuTTWj4QH9SNb1J5 e1F64p+JP9oJ+bhB8LoGJZsY0tRYqyKoxHej+soBK2OuQZgeQ03/L+2HYQK73pNgB4u7 g1LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E5szG8LBnOcxBBZnWmgeIAUb2+uhXoYO8uVN9yiw6pE=; b=SW+1Cz6pdrCV7rQUUwyd123G2xDxIa4DIXko0Hz62qVUd7f+03UC/IxjnKCKzj3vgX aEXmwabXWM2wHbWt/9jWR2+R58Ve76pTSQt29psTFphKCiagbhi7kQRbF/ElI2VOw3oX i32MNohU8kl9NQrpHJHGOkyMnd4zcKdGkLUp0L/1vxcwnKGUHB4bErQKjLM20DMZs1nL BM+aR94iVeJQScflxi11aYdZvuaaaSSMZUJedXbYYnLMV8oKuNCl75eE7dm//gDUyEb8 x+ZOR5NlfB//6aAPxtTznk2IlORuB8KE8DqM9DWpLg2PF+YSlpeV7xm/ozcIIWWIkZUy n+Ug== X-Gm-Message-State: ACrzQf0WNl/9lkomoiIGyztMGU7WT8Uq7HpqVJtfUoTUyx8GzNRyEdwl SDsTbx6JGFP6gFXnvN75O1LigjbEgYtwFg== X-Google-Smtp-Source: AMsMyM7VQop8dMj2Jm0ACJmm0PU7NiQKWIoj/CZCDXOEeL4pTNfSf8PQRZKTjb+jzjdRqn/SytmydQ== X-Received: by 2002:adf:d1c4:0:b0:230:7771:f618 with SMTP id b4-20020adfd1c4000000b002307771f618mr5006733wrd.203.1665993649464; Mon, 17 Oct 2022 01:00:49 -0700 (PDT) Received: from gojira.dev.6wind.com ([185.13.181.2]) by smtp.gmail.com with ESMTPSA id k2-20020a5d6e82000000b0022ccae2fa62sm7769676wrz.22.2022.10.17.01.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 01:00:48 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Cc: Maxime Coquelin , Chenbo Xia Subject: [PATCH v2] net/virtio: add queue and port ID in some logs Date: Mon, 17 Oct 2022 10:00:37 +0200 Message-Id: <20221017080037.28634-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220929122228.1170-1-olivier.matz@6wind.com> References: <20220929122228.1170-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- v2 * use %u instead of %d for unsigned types 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 574f671158..760ba4e368 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -2814,7 +2814,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=%u (port=%u)", 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]); @@ -2828,7 +2829,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=%u)", + 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..d9d40832e0 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=%u queue=%u)", nbufs, + dev->data->port_id, queue_idx); VIRTQUEUE_DUMP(vq); -- 2.30.2