datapath-windows: don't free switch cxt until ref == 0
authorNithin Raju <nithin@vmware.com>
Thu, 23 Apr 2015 00:10:10 +0000 (17:10 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 23 Apr 2015 18:01:38 +0000 (11:01 -0700)
commite1e29b268c77c862f2827beeb4f319396dc66ef2
treeb8a41b91ef48d32cae2a1ba9de5f17b87f6cfc74
parent83e09b5dfa35b95e9995713bdfcb9a27f9b4ed7f
datapath-windows: don't free switch cxt until ref == 0

This is a hard to hit corner case, because currently we recommend that
all handles to the kernel datapath be closed before trying to unload the
OVS extension.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Switch.c