netdev-dpdk: Clean-up after vHost User port delete
authorCiara Loftus <ciara.loftus@intel.com>
Wed, 21 Oct 2015 13:50:36 +0000 (14:50 +0100)
committerDaniele Di Proietto <diproiettod@vmware.com>
Thu, 22 Oct 2015 18:57:59 +0000 (11:57 -0700)
commite04f7e4f2f574500334326dbda1bb808cf25c721
treeca4b51e8df85093627189d0be4869da15cf24d14
parent3cdb27d3142eb1a2d827edf6c802d3419273718e
netdev-dpdk: Clean-up after vHost User port delete

Unregister and delete the socket associated with a vhost-user
port when the port is deleted and/or the switch is brought down.
Do not delete the socket if the vhost-user device is still attached
to the guest.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netdev-dpdk.c