datapath-windows: Fix HvUpdateNic() to handle name changes
authorNithin Raju <nithin@vmware.com>
Wed, 25 Nov 2015 20:00:58 +0000 (12:00 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 25 Nov 2015 21:54:41 +0000 (13:54 -0800)
commitd49b001d137eba8296d3f9581c91fea8067c4352
tree473e937f7b6048245d603dcb7c529a4f6d33f805
parent34be96cabf1e0ef684764feaa797ee410c86b049
datapath-windows: Fix HvUpdateNic() to handle name changes

If the name of an internal or external NIC changes, we need to
disconnect the NIC from OVS since the name is the key. In this
change, we generate a link down event. It is as though we got a
call to HvDisconnectNic() for the old name and got a HvConnectNic()
for the new name.

Also, HvCreateNic() has been cleaned up to remove the code to look
for existing vport. We won't have a vport now since we'd have deleted
the vport in HvDeleteNic().

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
datapath-windows/ovsext/Vport.c
datapath-windows/ovsext/Vport.h