diff options
author | Nithin Raju <nithin@vmware.com> | 2014-11-18 17:42:48 -0800 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2014-11-20 07:13:52 -0800 |
commit | 25f44d58248cf4ef46303cf3c35fbd28a493b266 (patch) | |
tree | e905de4ed18c364c690cb4e27ef94461c80c51f1 /datapath-windows/ovsext/User.c | |
parent | 8ea43bad3d4bf56d29c1390a9c7f5c8f9cb4e252 (diff) | |
download | openvswitch-25f44d58248cf4ef46303cf3c35fbd28a493b266.tar.gz |
datapath-windows: Fixes in HvCreatePort() to re-add a port
In this patch, we update HvCreatePort() to be able to re-add a Hyper-V
port. Specifically, we handle the case where the port had also been
added by OVS userspace, so that when the port was previously deleted
from Hyper-V, we did not deallocate the port.
The key to a vport is its name. We lookup the list of vports both in the
'portIdHashArray' as well as 'portNoHashArray' to make sure that we
don't have a port with the same name.
Validation:
- deleted an re-added a port with and without the corresponding OVS port
existing
- deleted, changed the name of a port, and re-added it back with and
without the corresponding OVS port existing.
- uninstall was succcessful. No asserts hit.
Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Ankur Sharma <ankursharma@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/User.c')
0 files changed, 0 insertions, 0 deletions