netdev-dpdk: Unlink vhost-user sockets on fatal signals.
authorIlya Maximets <i.maximets@samsung.com>
Tue, 2 Feb 2016 11:02:15 +0000 (14:02 +0300)
committerBen Pfaff <blp@ovn.org>
Tue, 2 Feb 2016 18:30:25 +0000 (10:30 -0800)
commite5c0f5a4452e368bbe4f24e9f5a591965399d0fa
treea2e2af066e6c6a91adb493ae678f55f0fa5d2d1f
parent06954237f034e498999dcd125bcc932d39e6e912
netdev-dpdk: Unlink vhost-user sockets on fatal signals.

While killing OVS may not call rte_vhost_driver_unregister()
for vhost-user ports. As a result corresponding socket will
remain in a system and opening of that port after restart
will fail.

(Even after this patch this remains a problem for signals
that OVS does not or cannot catch, such as SIGSEGV and
SIGKILL.)

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-dpdk.c