From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id A92F71B32B; Mon, 12 Feb 2018 04:18:46 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2018 19:18:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,499,1511856000"; d="scan'208";a="26853850" Received: from dpdk06.sh.intel.com ([10.67.110.196]) by orsmga003.jf.intel.com with ESMTP; 11 Feb 2018 19:18:42 -0800 From: Jianfeng Tan To: dev@dpdk.org Cc: yliu@fridaylinux.org, maxime.coquelin@redhat.com, tiwei.bie@intel.com, Jianfeng Tan , stable@dpdk.org, mtetsuyah@gmail.com Date: Mon, 12 Feb 2018 03:20:26 +0000 Message-Id: <1518405628-23976-2-git-send-email-jianfeng.tan@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518405628-23976-1-git-send-email-jianfeng.tan@intel.com> References: <1518405628-23976-1-git-send-email-jianfeng.tan@intel.com> Subject: [dpdk-dev] [PATCH 1/3] net/vhost: fix incorrect log info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2018 03:18:47 -0000 The original words are not accurate. For example, as destroy_device callback gets called, it does not necessarily mean that the connection is closed. Fixes: ee584e9710b9 ("vhost: add driver on top of the library") Cc: stable@dpdk.org Cc: mtetsuyah@gmail.com Signed-off-by: Jianfeng Tan --- drivers/net/vhost/rte_eth_vhost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 4e541e3..3aae01c 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -607,7 +607,7 @@ new_device(int vid) rte_atomic32_set(&internal->dev_attached, 1); update_queuing_status(eth_dev); - RTE_LOG(INFO, PMD, "New connection established\n"); + RTE_LOG(INFO, PMD, "Vhost device %d created\n", vid); _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC, NULL); @@ -661,7 +661,7 @@ destroy_device(int vid) state->max_vring = 0; rte_spinlock_unlock(&state->lock); - RTE_LOG(INFO, PMD, "Connection closed\n"); + RTE_LOG(INFO, PMD, "Vhost device %d destroyed\n", vid); _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC, NULL); } -- 2.7.4