From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 98014377E for ; Thu, 2 Jul 2015 05:33:23 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 01 Jul 2015 20:33:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,389,1432623600"; d="scan'208";a="756968174" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 01 Jul 2015 20:33:08 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t623X65w006633; Thu, 2 Jul 2015 11:33:06 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t623X3OD020416; Thu, 2 Jul 2015 11:33:05 +0800 Received: (from couyang@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t623X3f6020412; Thu, 2 Jul 2015 11:33:03 +0800 From: Ouyang Changchun To: dev@dpdk.org Date: Thu, 2 Jul 2015 11:33:00 +0800 Message-Id: <1435807983-20383-1-git-send-email-changchun.ouyang@intel.com> X-Mailer: git-send-email 1.7.12.2 Subject: [dpdk-dev] [PATCH 0/3] Fix vhost startup issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2015 03:33:24 -0000 The commit breaks vhost sample when it runs in second time: 292959c71961acde0cda6e77e737bb0a4df1559c It should call api to unregister vhost driver when sample exit/quit, then the socket file will be removed(by calling unlink), and thus make vhost sample work correctly in second time startup. Also add/refine some log infomation. Changchun Ouyang (3): vhost: add log if fails to bind a socket vhost: fix the comments and log vhost: call api to unregister vhost driver examples/vhost/main.c | 22 ++++++++++++++++++++-- lib/librte_vhost/vhost_user/vhost-net-user.c | 5 ++++- 2 files changed, 24 insertions(+), 3 deletions(-) -- 1.8.4.2