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 E7179A0C45; Thu, 16 Sep 2021 15:25:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BAC71407FF; Thu, 16 Sep 2021 15:25:27 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id C40E7407FF for ; Thu, 16 Sep 2021 15:25:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631798725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7HSKWRITM1wSue07QPUlDCBrnUjbfR7kvGZC5QMJtHs=; b=ALfXd/W82xLrjw1J1jfBJcf9EYpvFoyRdTuJBK2z88uzI1Xl4YwIlO9Za8bC17sZS6zzF8 8sb5dagidR113CcRrKboCyoqR8D7uC99lgnsBgxV12yOZMEC/hK+iVWI6ggzXXltZPHVPX NJhGoi0RF93+m/LDnOAG0bECwaulb7o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-549-nx8UHUDJO_CQ_bXVvtf92Q-1; Thu, 16 Sep 2021 09:25:20 -0400 X-MC-Unique: nx8UHUDJO_CQ_bXVvtf92Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EE2B218414BF; Thu, 16 Sep 2021 13:25:18 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.147]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1F4815D9FC; Thu, 16 Sep 2021 13:25:08 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, stable@dpdk.org, Maxime Coquelin , Chenbo Xia , Marvin Liu Date: Thu, 16 Sep 2021 15:25:02 +0200 Message-Id: <20210916132502.27109-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH] net/virtio: do not use PMD log type 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 Sender: "dev" Fixes: 1982462eadea ("net/virtio: add Rx free threshold setting") Cc: stable@dpdk.org Signed-off-by: David Marchand --- drivers/net/virtio/virtio_rxtx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index 501ca1582d..b9d7c8d18f 100644 --- a/drivers/net/virtio/virtio_rxtx.c +++ b/drivers/net/virtio/virtio_rxtx.c @@ -690,16 +690,16 @@ virtio_dev_rx_queue_setup(struct rte_eth_dev *dev, RTE_MIN(vq->vq_nentries / 4, DEFAULT_RX_FREE_THRESH); if (rx_free_thresh & 0x3) { - RTE_LOG(ERR, PMD, "rx_free_thresh must be multiples of four." - " (rx_free_thresh=%u port=%u queue=%u)\n", + PMD_INIT_LOG(ERR, "rx_free_thresh must be multiples of four." + " (rx_free_thresh=%u port=%u queue=%u)", rx_free_thresh, dev->data->port_id, queue_idx); return -EINVAL; } if (rx_free_thresh >= vq->vq_nentries) { - RTE_LOG(ERR, PMD, "rx_free_thresh must be less than the " + PMD_INIT_LOG(ERR, "rx_free_thresh must be less than the " "number of RX entries (%u)." - " (rx_free_thresh=%u port=%u queue=%u)\n", + " (rx_free_thresh=%u port=%u queue=%u)", vq->vq_nentries, rx_free_thresh, dev->data->port_id, queue_idx); return -EINVAL; -- 2.23.0