vport-internal: Set vport to NULL when detaching.
authorJesse Gross <jesse@nicira.com>
Thu, 29 Jul 2010 22:59:36 +0000 (15:59 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 30 Jul 2010 20:44:30 +0000 (13:44 -0700)
commit63db6ec35ddc2432dda059f277257886c2d1ba8f
treea9b9aee4af1d442b274a19b43ff35391b4d737cf
parentcc98976af50fec5643a372aa9c7a4c4e565e939e
vport-internal: Set vport to NULL when detaching.

'struct net_device' is refcounted and can stick around for quite a
while if someone is still holding a reference to it.  However, we
free the vport that it is attached to in the next RCU grace period
after detach.  This assigns the vport to NULL on detach and adds
appropriate checks.
datapath/dp_notify.c
datapath/dp_sysfs_dp.c
datapath/vport-internal_dev.c