[dpdk-dev] [PATCH] vhost: added user callbacks for socket open/close

Stojaczyk, DariuszX dariuszx.stojaczyk at intel.com
Tue Aug 22 11:55:19 CEST 2017


Hi Jens,

> I'm a little uncertain but my gut feeling is that in this context a connection is
> something between two sockets, not between devices.

What do you mean?
This is a unix domain socket connection. DPDK can create the socket, then the client may connect to it via connect(2).

> I would probably add
> these callbacks to struct vhost_user_socket. This is also where we keep the
> list of connections.

I get your point. However, it's vhost_device_ops struct that's being set by the user via rte_vhost_driver_callback_register(). The new_connection callback is there just to mark the device as *in use, can't be deleted*. It doesn't transport any connection data.

Regards,
D.


More information about the dev mailing list