datapath: Directly use free_netdev for internal devices.
authorJesse Gross <jesse@nicira.com>
Thu, 4 Nov 2010 23:20:32 +0000 (16:20 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 5 Nov 2010 00:32:49 +0000 (17:32 -0700)
commit5cc6f314d9eab7975ddaf3dd89366aaf54c234e1
tree94d4db51c71d2e570fc9960a7fd672c89a558e54
parent9106d88c5bc75310f3f83b649d833e4a22cb1158
datapath: Directly use free_netdev for internal devices.

Currently internal devices register a destructor function which
simply calls free_netdev.  Instead we can simply set the destructor
to free_netdev.  In addition to being cleaner, it is also a bug fix
because the module could be unloaded before the destructor is called,
making a call into our code illegal.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-internal_dev.c