2
0
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:
Ben Pfaff
2010-09-24 10:54:42 -07:00
parent 6fcfff1b11
commit b8dcf5e9c5
5 changed files with 20 additions and 22 deletions

View File

@@ -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);
}