net: rtnetlink - make create_link take name_assign_type
This passes down NET_NAME_USER (or NET_NAME_ENUM) to alloc_netdev(), for any device created over rtnetlink. v9: restore reverse-christmas-tree order of local variables Signed-off-by: Tom Gundersen <teg@jklm.no> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c835a67733
commit
5517750f05
3 changed files with 17 additions and 7 deletions
|
@ -136,6 +136,7 @@ void rtnl_af_unregister(struct rtnl_af_ops *ops);
|
|||
|
||||
struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
|
||||
struct net_device *rtnl_create_link(struct net *net, char *ifname,
|
||||
unsigned char name_assign_type,
|
||||
const struct rtnl_link_ops *ops,
|
||||
struct nlattr *tb[]);
|
||||
int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue