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 AB27B41C23 for ; Mon, 6 Feb 2023 16:07:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9443542D44; Mon, 6 Feb 2023 16:07:45 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id AA63A42D44 for ; Mon, 6 Feb 2023 16:07:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675696064; 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=eRk1o5LutXCfUlz8qe7Sf6Lxf8waQ4OU/14r9o+OrDM=; b=EmT897vAArb4ZLlaSK6T9rI1Q3Ta3EBtdmgVS2lc3v9KWIL2wMVVsDFZql+kfXXHTwna+l evAhyNNOHSZsMv6dbfQkFM3SACJdpcbjQNSIBpyqX0I0uWtrFZDIdkY1/jUqxKMBoRM3X5 m0fc9+sY7pUChnQ9MntR+3Mibg0zsi0= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-464-z0TJpJ1gPDG9IDBZj7Zwrg-1; Mon, 06 Feb 2023 10:07:41 -0500 X-MC-Unique: z0TJpJ1gPDG9IDBZj7Zwrg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 45E9829ABA03; Mon, 6 Feb 2023 15:07:38 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id ED9082026D37; Mon, 6 Feb 2023 15:07:36 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, chenbo.xia@intel.com, ktraynor@redhat.com, david.marchand@redhat.com Cc: Maxime Coquelin , stable@dpdk.org Subject: [PATCH v2] vhost: decrease log level for unimplemented requests Date: Mon, 6 Feb 2023 16:07:33 +0100 Message-Id: <20230206150733.108910-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org This patch changes VHOST_USER_SET_VRING_ERR and VHOST_USER_SET_LOG_FD "not implemented" log levels from INFO to DEBUG, as implementing these requests is not mandatory. Having them being displayed at INFO level may induce some confusion to the end-user. Fixes: fd29c33b651a ("vhost: handle unsupported message types in functions") Cc: stable@dpdk.org Signed-off-by: Maxime Coquelin --- lib/vhost/vhost_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index 8f33d5f4d9..551908df8e 100644 --- a/lib/vhost/vhost_user.c +++ b/lib/vhost/vhost_user.c @@ -1818,7 +1818,7 @@ static int vhost_user_set_vring_err(struct virtio_net **pdev, if (!(ctx->msg.payload.u64 & VHOST_USER_VRING_NOFD_MASK)) close(ctx->fds[0]); - VHOST_LOG_CONFIG(dev->ifname, INFO, "not implemented\n"); + VHOST_LOG_CONFIG(dev->ifname, DEBUG, "not implemented\n"); return RTE_VHOST_MSG_RESULT_OK; } @@ -2336,7 +2336,7 @@ static int vhost_user_set_log_fd(struct virtio_net **pdev, return RTE_VHOST_MSG_RESULT_ERR; close(ctx->fds[0]); - VHOST_LOG_CONFIG(dev->ifname, INFO, "not implemented.\n"); + VHOST_LOG_CONFIG(dev->ifname, DEBUG, "not implemented.\n"); return RTE_VHOST_MSG_RESULT_OK; } -- 2.39.1