From: Kevin Traynor <ktraynor@redhat.com>
To: Maxime Coquelin <maxime.coquelin@redhat.com>,
dev@dpdk.org, chenbo.xia@intel.com, david.marchand@redhat.com
Cc: stable@dpdk.org
Subject: Re: [PATCH v2] vhost: decrease log level for unimplemented requests
Date: Tue, 7 Feb 2023 10:18:18 +0000 [thread overview]
Message-ID: <9d871de0-c9fa-6cb9-1776-c492efcf0126@redhat.com> (raw)
In-Reply-To: <20230206150733.108910-1-maxime.coquelin@redhat.com>
On 06/02/2023 15:07, Maxime Coquelin wrote:
> 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 <maxime.coquelin@redhat.com>
> ---
> 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;
> }
Acked-by: Kevin Traynor <ktraynor@redhat.com>
next prev parent reply other threads:[~2023-02-07 10:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-06 15:07 Maxime Coquelin
2023-02-07 2:57 ` Xia, Chenbo
2023-02-07 10:18 ` Kevin Traynor [this message]
2023-02-09 12:13 ` Maxime Coquelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9d871de0-c9fa-6cb9-1776-c492efcf0126@redhat.com \
--to=ktraynor@redhat.com \
--cc=chenbo.xia@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=maxime.coquelin@redhat.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).