From 65d9664a0f0199ac21e12eb73f734af3588ef5fd Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Wed, 13 Oct 2010 00:14:31 -0700 Subject: [PATCH] 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 --- lib/netdev-vport.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.43.0