[ovs-dev] [PATCH RFC] netdev-dpdk: Use unique temporary directories for vhost-user sockets

Ilya Maximets i.maximets at samsung.com
Thu Feb 4 07:05:30 UTC 2016


On 04.02.2016 02:51, Flavio Leitner wrote:
> 
> What about the patch below? (RFC, completely untested).
> 
> diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
> index d115de2..7ec9745 100644
> --- a/lib/netdev-dpdk.c
> +++ b/lib/netdev-dpdk.c
> @@ -684,6 +684,9 @@ netdev_dpdk_vhost_user_construct(struct netdev *netdev_)
>       */
>      snprintf(netdev->vhost_id, sizeof(netdev->vhost_id), "%s/%s",
>              vhost_sock_dir, netdev_->name);
> +
> +    /* remove old socket */
> +    unlink(netdev->vhost_id); 
>      err = rte_vhost_driver_register(netdev->vhost_id);
>      if (err) {
>          VLOG_ERR("vhost-user socket device setup failure for socket %s\n",
> 

You may join discussion here:
http://openvswitch.org/pipermail/dev/2016-February/065556.html

Best regards, Ilya Maximets.



More information about the dev mailing list