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

dpif: Make dpif_class 'open' function take class instead of type name.

This makes it easier for dpif_provider implementations to share code but
distinguish the class actually in use, because comparing a pointer is
easier than comparing a string.
This commit is contained in:
Ben Pfaff
2010-11-18 10:06:41 -08:00
parent d2d8fbebb8
commit 4a38774146
4 changed files with 14 additions and 11 deletions

View File

@@ -112,8 +112,8 @@ dpif_linux_enumerate(struct svec *all_dps)
}
static int
dpif_linux_open(const char *name, const char *type OVS_UNUSED, bool create,
struct dpif **dpifp)
dpif_linux_open(const struct dpif_class *class OVS_UNUSED, const char *name,
bool create, struct dpif **dpifp)
{
int minor;