vhost: fix passing destroyed device to destroy callback
authorIlya Maximets <i.maximets@samsung.com>
Fri, 12 Apr 2019 08:32:28 +0000 (11:32 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commit2344395df2e944683df87b1a47f8b64eea050d2b
tree6c118d9df0736b0f8c4be9c16a82f6fa0d2c668f
parentb045785f92d9a59d2ed3d27891201d1f07c051b3
vhost: fix passing destroyed device to destroy callback

Application should be able to obtain information like 'ifname' from
the 'vid' passed to 'destroy_connection' callback. Currently, all the
API calls with passed 'vid' fails with 'device not found'.

Fixes: efba12a78ddf ("vhost: add user callbacks for socket open/close")
Cc: stable@dpdk.org
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/socket.c