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:23 +0000 (10:00 -0700)
commitfda1b93b2e3ac564c3338d9af4e4d9d06e58ce38
tree2c3527a47ac5b9ea695dddae28db3b802aaf9c4d
parent403471681dbde8ceb21124137eefc309a71d510d
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