vhost: Disallow duplicate path name for vhost interface 38/6438/3
authorSteven <sluong@cisco.com>
Tue, 25 Apr 2017 23:16:00 +0000 (16:16 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 28 Apr 2017 07:59:19 +0000 (07:59 +0000)
commit5445f5fd9b9d020b285d48e571c86528932ac071
treecaf9dc716ad1b6456d53d13f8a55eba773a89c52
parentc903793662e16309a67161a58500f6a1a15d37f6
vhost: Disallow duplicate path name for vhost interface

When creating or modifying a vhost interface, verify if the path name
already existed and reject the command.

Change-Id: I8b2d33b77c847f774492874f7d194fa72c488479
Signed-off-by: Steven <sluong@cisco.com>
src/vnet/devices/virtio/vhost-user.c
src/vnet/devices/virtio/vhost-user.h