mirror of
https://github.com/openvswitch/ovs
synced 2025-10-13 14:07:02 +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:
@@ -238,8 +238,8 @@ create_dp_netdev(const char *name, int dp_idx, struct dpif **dpifp)
|
||||
}
|
||||
|
||||
static int
|
||||
dpif_netdev_open(const char *name, const char *type OVS_UNUSED, bool create,
|
||||
struct dpif **dpifp)
|
||||
dpif_netdev_open(const struct dpif_class *class OVS_UNUSED, const char *name,
|
||||
bool create, struct dpif **dpifp)
|
||||
{
|
||||
if (create) {
|
||||
if (find_dp_netdev(name)) {
|
||||
|
Reference in New Issue
Block a user