From patchwork Tue Jan 25 11:24:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 106507 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 248B2A0352; Tue, 25 Jan 2022 12:26:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B19F42992; Tue, 25 Jan 2022 12:26:18 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 45D5642986 for ; Tue, 25 Jan 2022 12:26:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643109976; 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: in-reply-to:in-reply-to:references:references; bh=3xawsCPHSIxgKhzSJB2c2+UEvcV2IPfOb6rct4WW12s=; b=ISGSF3IkPnwa8qxzUOABJlO+0WB3o6CnAVb5pRIpYDQuawwhby9ME6iQOe3paKfkaim/um lv4+O5oH9Q6no2Ml6HkHx4+ekTtcb51r+wcrlyHklOjUs8wZvW3ZFyVFOw3n5eu+w4k1lK zn3jByRG+WAYQlQVANQpzxSf4gNYjVc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-343-mp7o_qGiNe2GnWA2ge6wYg-1; Tue, 25 Jan 2022 06:26:13 -0500 X-MC-Unique: mp7o_qGiNe2GnWA2ge6wYg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7D7711934101; Tue, 25 Jan 2022 11:26:12 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6F4E36E1FF; Tue, 25 Jan 2022 11:26:08 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, chenbo.xia@intel.com, david.marchand@redhat.com Cc: Maxime Coquelin Subject: [PATCH v2 9/9] vhost: use proper logging type for data path Date: Tue, 25 Jan 2022 12:24:57 +0100 Message-Id: <20220125112457.166434-10-maxime.coquelin@redhat.com> In-Reply-To: <20220125112457.166434-1-maxime.coquelin@redhat.com> References: <20220125112457.166434-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 This patch changes type from config to data for functions called in the datapath. Suggested-by: David Marchand Signed-off-by: Maxime Coquelin Reviewed-by: Chenbo Xia --- lib/vhost/vhost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vhost/vhost.c b/lib/vhost/vhost.c index cd62dc238b..f59ca6c157 100644 --- a/lib/vhost/vhost.c +++ b/lib/vhost/vhost.c @@ -58,7 +58,7 @@ __vhost_iova_to_vva(struct virtio_net *dev, struct vhost_virtqueue *vq, vhost_user_iotlb_pending_insert(dev, vq, iova, perm); if (vhost_user_iotlb_miss(dev, iova, perm)) { - VHOST_LOG_CONFIG(ERR, "(%s) IOTLB miss req failed for IOVA 0x%" PRIx64 "\n", + VHOST_LOG_DATA(ERR, "(%s) IOTLB miss req failed for IOVA 0x%" PRIx64 "\n", dev->ifname, iova); vhost_user_iotlb_pending_remove(vq, iova, 1, perm); } @@ -420,7 +420,7 @@ translate_log_addr(struct virtio_net *dev, struct vhost_virtqueue *vq, gpa = hva_to_gpa(dev, hva, exp_size); if (!gpa) { - VHOST_LOG_CONFIG(ERR, + VHOST_LOG_DATA(ERR, "(%s) failed to find GPA for log_addr: 0x%" PRIx64 " hva: 0x%" PRIx64 "\n", dev->ifname, log_addr, hva);