datapath-windows: cleanup AssignNicNameSpecial()
authorNithin Raju <nithin@vmware.com>
Wed, 25 Nov 2015 20:00:57 +0000 (12:00 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 25 Nov 2015 21:54:37 +0000 (13:54 -0800)
commit34be96cabf1e0ef684764feaa797ee410c86b049
treef34294683e0fcf8ea194eb223ba0cf5bb7af3a81
parent12e888bae3b29b83d2c0877bbbfb07ce42089539
datapath-windows: cleanup AssignNicNameSpecial()

AssignNicNameSpecial() needed to be called outside of a lock and was
moved out in a previous change. But, it was accessing vport structure
outside of the lock which isn't safe. In this change, we take care of
that.

I tried to trigger a call to HvUpdateNic() by renaming the interface
from the GUI and didn't see any callback. Other changes are tested.

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