git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
proper destruction of netdev datapaths
[sliver-openvswitch.git]
/
lib
/
dpif-netdev.c
diff --git
a/lib/dpif-netdev.c
b/lib/dpif-netdev.c
index
9e8d5e4
..
fb23fa3
100644
(file)
--- a/
lib/dpif-netdev.c
+++ b/
lib/dpif-netdev.c
@@
-165,6
+165,17
@@
get_dp_netdev(const struct dpif *dpif)
return dpif_netdev_cast(dpif)->dp;
}
return dpif_netdev_cast(dpif)->dp;
}
+static int
+dpif_netdev_enumerate(struct sset *all_dps)
+{
+ struct shash_node *node;
+
+ SHASH_FOR_EACH(node, &dp_netdevs) {
+ sset_add(all_dps, node->name);
+ }
+ return 0;
+}
+
static struct dpif *
create_dpif_netdev(struct dp_netdev *dp)
{
static struct dpif *
create_dpif_netdev(struct dp_netdev *dp)
{
@@
-1249,7
+1260,7
@@
dp_netdev_execute_actions(struct dp_netdev *dp,
}
#define DPIF_NETDEV_CLASS_FUNCTIONS \
}
#define DPIF_NETDEV_CLASS_FUNCTIONS \
-
NULL, /* enumerate */
\
+
dpif_netdev_enumerate,
\
dpif_netdev_open, \
dpif_netdev_close, \
dpif_netdev_destroy, \
dpif_netdev_open, \
dpif_netdev_close, \
dpif_netdev_destroy, \