From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E1260E62 for ; Mon, 8 Jun 2015 17:46:54 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 08 Jun 2015 08:38:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,574,1427785200"; d="scan'208";a="504859148" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by FMSMGA003.fm.intel.com with ESMTP; 08 Jun 2015 08:38:51 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by KMSMSX151.gar.corp.intel.com (172.21.73.86) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 8 Jun 2015 23:38:50 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.120]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.168]) with mapi id 14.03.0224.002; Mon, 8 Jun 2015 23:38:49 +0800 From: "Xie, Huawei" To: "Loftus, Ciara" , "dev@dpdk.org" Thread-Topic: [PATCH v2] vhost: provide vhost API to unregister vhost unix domain socket Thread-Index: AdCiATaMNV5/Cz4ITceY7KPbs///KQ== Date: Mon, 8 Jun 2015 15:38:49 +0000 Message-ID: References: <1433209800-29091-1-git-send-email-huawei.xie@intel.com> <1433474786-704-1-git-send-email-huawei.xie@intel.com> <74F120C019F4A64C9B78E802F6AD4CC220567AC8@IRSMSX106.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] vhost: provide vhost API to unregister vhost unix domain socket 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: Mon, 08 Jun 2015 15:46:55 -0000 On 6/5/2015 5:04 PM, Loftus, Ciara wrote:=0A= >=0A= >> -----Original Message-----=0A= >> From: Xie, Huawei=0A= >> Sent: Friday, June 05, 2015 4:26 AM=0A= >> To: dev@dpdk.org=0A= >> Cc: Loftus, Ciara; Xie, Huawei; Sun, Peng A=0A= >> Subject: [PATCH v2] vhost: provide vhost API to unregister vhost unix do= main=0A= >> socket=0A= >>=0A= >> rte_vhost_driver_unregister will remove the listenfd from event list, an= d=0A= >> then close it.=0A= >>=0A= >> Signed-off-by: Huawei Xie =0A= >> Signed-off-by: Peng Sun =0A= >> ---=0A= >> lib/librte_vhost/rte_virtio_net.h | 3 ++=0A= >> lib/librte_vhost/vhost_cuse/vhost-net-cdev.c | 9 ++++=0A= >> lib/librte_vhost/vhost_user/vhost-net-user.c | 68=0A= >> +++++++++++++++++++++++-----=0A= >> lib/librte_vhost/vhost_user/vhost-net-user.h | 2 +-=0A= >> 4 files changed, 69 insertions(+), 13 deletions(-)=0A= >>=0A= >>=0A= > Acked-by: Ciara Loftus =0A= >=0A= >=0A= >=0A= Thomas:=0A= Comments to this patch?=0A= This patch will remove the socket file and associated listen fd.=0A= In future, I would also look at whether there is opportunity to attach a=0A= id to each vhost user net interface from QEMU.=0A= Currently DPDK OVS creates a socket file for each virtio device and use=0A= the file path as the id for the port.=0A= =0A= /huawei=0A= =0A= =0A=