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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user