On 6/5/2015 5:04 PM, Loftus, Ciara wrote: > >> -----Original Message----- >> From: Xie, Huawei >> Sent: Friday, June 05, 2015 4:26 AM >> To: dev at dpdk.org >> Cc: Loftus, Ciara; Xie, Huawei; Sun, Peng A >> Subject: [PATCH v2] vhost: provide vhost API to unregister vhost unix domain >> socket >> >> rte_vhost_driver_unregister will remove the listenfd from event list, and >> then close it. >> >> Signed-off-by: Huawei Xie <huawei.xie at intel.com> >> Signed-off-by: Peng Sun <peng.a.sun at intel.com> >> --- >> lib/librte_vhost/rte_virtio_net.h | 3 ++ >> lib/librte_vhost/vhost_cuse/vhost-net-cdev.c | 9 ++++ >> lib/librte_vhost/vhost_user/vhost-net-user.c | 68 >> +++++++++++++++++++++++----- >> lib/librte_vhost/vhost_user/vhost-net-user.h | 2 +- >> 4 files changed, 69 insertions(+), 13 deletions(-) >> >> > Acked-by: Ciara Loftus <ciara.loftus at intel.com> > > > Thomas: Comments to this patch? This patch will remove the socket file and associated listen fd. In future, I would also look at whether there is opportunity to attach a id to each vhost user net interface from QEMU. Currently DPDK OVS creates a socket file for each virtio device and use the file path as the id for the port.
/huawei