vhost: make destroy callback on reset owner message
authorRich Lane <rich.lane@bigswitch.com>
Tue, 10 Nov 2015 02:15:13 +0000 (18:15 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 12 Nov 2015 11:39:08 +0000 (12:39 +0100)
commitd243ecf0c2de7c0fe45f6efa30c26f1c79c8cb16
tree467c1dedfcee2e86d257da02a4570f71806ac387
parent50687c312a4510a00285af2bb686ce6d089644cd
vhost: make destroy callback on reset owner message

QEMU sends VHOST_RESET_OWNER first when shutting down.
There was previously no way for the dataplane to know that the
virtio_net instance had become unusable and it would segfault
when trying to do RX/TX.

Signed-off-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/virtio-net.c