From: Justin Pettit Date: Wed, 13 Oct 2010 07:14:31 +0000 (-0700) Subject: netdev-vport: Actually destroy the vport when "destroy" is called X-Git-Tag: v1.1.0~1002 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=65d9664a0f0199ac21e12eb73f734af3588ef5fd;p=sliver-openvswitch.git netdev-vport: Actually destroy the vport when "destroy" is called Commit 2b9d65 (netdev-vport: Merge in netdev-patch and netdev-tunnel.) refactored the common parts of the netdev-patch and netdev-tunnel sources into netdev-vport. During the refactoring, the "destroy" method didn't inherit the netdev_vport_do_ioctl(ODP_VPORT_DEL, ...) call, which is needed to actually destroy the device in the kernel. This commit fixes that. Bug #3267 --- diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index 1ef9114c7..d354dc398 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -169,6 +169,8 @@ netdev_vport_destroy(struct netdev_dev *netdev_dev_) { struct netdev_dev_vport *netdev_dev = netdev_dev_vport_cast(netdev_dev_); + netdev_vport_do_ioctl(ODP_VPORT_DEL, + (char *)netdev_dev_get_name(netdev_dev_)); free(netdev_dev); }