Dariusz Stojaczyk efba12a78d vhost: add user callbacks for socket open/close
Added new callbacks to notify about socket connection status.
As destroy_device is used for virtqueue processing *pause* as well as
connection close, the user has no distinction between those.

Consider the following scenario:
rte_vhost: received SET_VRING_BASE message,
           calling destroy_device() as usual

user:  end-user asks to remove the device (together with socket file),
       OK, device is not *in use* - that's NOT the behavior we want
       calling rte_vhost_driver_unregister() etc.

Instead of changing new_device/destroy_device callbacks and breaking
the ABI, a set of new functions new_connection/destroy_connection
has been added.

Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
2017-10-10 15:54:31 +02:00
..
2017-10-09 00:23:59 +02:00
2015-05-12 15:13:15 +02:00
2016-04-01 18:56:27 +02:00
2017-10-09 00:23:59 +02:00
2016-12-06 17:56:04 +01:00
2017-03-15 18:49:41 +01:00
2016-04-11 23:56:34 +02:00
2017-07-20 00:06:07 +03:00
2016-11-07 21:50:27 +01:00
2015-12-15 13:50:42 +01:00
2017-03-29 22:25:34 +02:00
2017-10-09 01:54:29 +02:00
2015-04-29 18:34:58 +02:00