Don't try to destroy dp_dev while the local port holds a reference to it.
authorBen Pfaff <blp@nicira.com>
Mon, 2 Jun 2008 17:16:34 +0000 (10:16 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 3 Jun 2008 03:18:38 +0000 (20:18 -0700)
commit0b75446a26c68f2a9f2dd3a9112b34fc81ffc0cb
treeac8d4af95340f6841a682dc8163ac1189429dad3
parent913e36d3f658531b83da86f0ff219e62e04c51da
Don't try to destroy dp_dev while the local port holds a reference to it.

Fixes a message output at deldp time:
unregister_netdevice: waiting for of0 to become free. Usage count = 1

Thanks to Murphy and Justin for reporting this bug.
datapath/datapath.c