mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
netdev: Pass class structure, instead of type, to "create" function.
This opens up the possibility of storing private data at a relative offset to the class structure, instead of having to keep a separate table.
This commit is contained in:
@@ -276,7 +276,7 @@ create_device(struct netdev_options *options, struct netdev_dev **netdev_devp)
|
||||
return EAFNOSUPPORT;
|
||||
}
|
||||
|
||||
return netdev_class->create(options->name, options->type, options->args,
|
||||
return netdev_class->create(netdev_class, options->name, options->args,
|
||||
netdev_devp);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user