From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v6 5/5] vhost: message handling implemented as a callback array Date: Wed, 26 Sep 2018 14:57:18 +0200 Message-ID: <6f61cf0f-e8b1-bec9-d988-0e6d9632b40a@redhat.com> References: <153782013094.27450.17651924330876922486.stgit@T460> <153782025279.27450.1954681982875165882.stgit@T460> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Nikolay Nikolaev , anatoly.burakov@intel.com, tiwei.bie@intel.com, zhihong.wang@intel.com Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 4CE721B3BB for ; Wed, 26 Sep 2018 14:57:23 +0200 (CEST) In-Reply-To: <153782025279.27450.1954681982875165882.stgit@T460> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Nikolay, On 09/24/2018 10:17 PM, Nikolay Nikolaev wrote: > + switch (ret) { > + case VH_RESULT_ERR: > + RTE_LOG(ERR, VHOST_CONFIG, > + "Processing %s failed.\n", > + vhost_message_str[request]); > + break; > + case VH_RESULT_OK: > + RTE_LOG(DEBUG, VHOST_CONFIG, > + "Processing %s succeeded.\n", > + vhost_message_str[request]); > + break; > + case VH_RESULT_REPLY: > + RTE_LOG(INFO, VHOST_CONFIG, I would prefer having it has DEBUG log level, do you agree? If so, no need to resend for it, I can fixup while applying. > + "Processing %s succeeded and needs reply.\n", > + vhost_message_str[request]); > + send_vhost_reply(fd, &msg); > + break; > + } Thanks, Maxime