2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

dpif: Use sset instead of svec in dpif interface.

This commit is contained in:
Ben Pfaff
2011-03-25 13:00:13 -07:00
parent b3c01ed330
commit d0c23a1a57
6 changed files with 46 additions and 49 deletions

View File

@@ -46,7 +46,6 @@
#include "rtnetlink-link.h"
#include "shash.h"
#include "sset.h"
#include "svec.h"
#include "unaligned.h"
#include "util.h"
#include "vlog.h"
@@ -160,7 +159,7 @@ dpif_linux_cast(const struct dpif *dpif)
}
static int
dpif_linux_enumerate(struct svec *all_dps)
dpif_linux_enumerate(struct sset *all_dps)
{
struct nl_dump dump;
struct ofpbuf msg;
@@ -176,7 +175,7 @@ dpif_linux_enumerate(struct svec *all_dps)
struct dpif_linux_dp dp;
if (!dpif_linux_dp_from_ofpbuf(&dp, &msg)) {
svec_add(all_dps, dp.name);
sset_add(all_dps, dp.name);
}
}
return nl_dump_done(&dump);