datapath-windows: Changes to OvsRemoveAndDeleteVport()
authorNithin Raju <nithin@vmware.com>
Wed, 19 Nov 2014 01:42:45 +0000 (17:42 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 20 Nov 2014 15:13:05 +0000 (07:13 -0800)
commitc22f284b4b8d714bf54305d13a5a26eba12e4afe
tree3a4f3944f5c2b8b50e9fd4dfa7b7e7dda886a09e
parent0b931c1cb2e90f5f75093ece8d06e1a931fdc94c
datapath-windows: Changes to OvsRemoveAndDeleteVport()

In this patch, we add changes to OvsRemoveAndDeleteVport() to allow the
caller to specify if a vport is being deleted because it got deleted on
Hyper-V or if it got deleted from OVS userspace.

The reason we need to make the distinction is to be able to delete the
vport from the relevant hash tables.

If a port has been deleted from all the hash tables ie. has been deleted
from Hyper-V as well as OVS userspace, it gets deallocated.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Ankur Sharma <ankursharma@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
datapath-windows/ovsext/Datapath.c
datapath-windows/ovsext/Vport.c
datapath-windows/ovsext/Vport.h