vhost: keep device identifier after reset owner
authorJerome Jutteau <jerome.jutteau@outscale.com>
Mon, 19 Oct 2015 09:44:26 +0000 (11:44 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 21 Oct 2015 10:03:57 +0000 (12:03 +0200)
commit2c95f4de6a7ec59c5793c64588066b6b2b8e6142
tree77132ee77b99feba2b8009c0ccb3876844fbcfa8
parentce8e121870d21e5ad5c6d1a21d0214e95e7a2fd2
vhost: keep device identifier after reset owner

virtio-net clean and init device after a VHOST_USER_RESET_OWNER.
This reset device identifier to 0 and break ll_root listing logic.
This patch keep the old device identifier and re-write it on the cleaned
device.

Signed-off-by: Jerome Jutteau <jerome.jutteau@outscale.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/virtio-net.c