dpif-netdev: allow for proper destruction of netdev datapaths
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Wed, 9 May 2012 10:17:15 +0000 (12:17 +0200)
committerBen Pfaff <blp@nicira.com>
Wed, 16 May 2012 17:00:34 +0000 (10:00 -0700)
commit4682afa0312f23b597f8c4e984b42b1f1780917e
treeb3216eb3ca8ed11f9d5e0e7fb0f82599f35a5db6
parentcd5c767c542d973191b3d9c05aa1eb4758c1259f
dpif-netdev: allow for proper destruction of netdev datapaths

Until now, bridges with datapath_type=netdev did not destroy the datapath
when deleted. In particular, the tap device implementing the internal
interface was not close()d, and therefore the tap persists until
ovs-vswitchd exit()s.

This behaviour was caused by the missing callback for 'enumerate' in the
dpif-netdev class. Without this callback 'bridge_reconfigure' failed to
realize that there are datapaths with no bridge, and thus cannot destroy
them. Providing an 'enumerate' callback fixes this.

Signed-off-by: Giuseppe Lettieri <g.lettieri@iet.unipi.it>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
lib/dpif-netdev.c