Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341655
b: refs/heads/master
c: c071356
h: refs/heads/master
i:
  341653: 53d3843
  341651: 76a2260
  341647: 57206b9
v: v3
  • Loading branch information
Rami Rosen authored and David S. Miller committed Nov 30, 2012
1 parent cfc730b commit 0f2ddd9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dad52fd964c54aa275ebb5c935ef8d8b0eded74d
refs/heads/master: c07135633bee3f01a6454d15b6411f32cfbeb2fd
2 changes: 1 addition & 1 deletion trunk/drivers/net/veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static int veth_newlink(struct net *src_net, struct net_device *dev,
if (IS_ERR(net))
return PTR_ERR(net);

peer = rtnl_create_link(src_net, net, ifname, &veth_link_ops, tbp);
peer = rtnl_create_link(net, ifname, &veth_link_ops, tbp);
if (IS_ERR(peer)) {
put_net(net);
return PTR_ERR(peer);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/net/rtnetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ extern void rtnl_af_unregister(struct rtnl_af_ops *ops);


extern struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
extern struct net_device *rtnl_create_link(struct net *src_net, struct net *net,
extern struct net_device *rtnl_create_link(struct net *net,
char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[]);
extern int rtnl_configure_link(struct net_device *dev,
const struct ifinfomsg *ifm);
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm)
}
EXPORT_SYMBOL(rtnl_configure_link);

struct net_device *rtnl_create_link(struct net *src_net, struct net *net,
struct net_device *rtnl_create_link(struct net *net,
char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[])
{
int err;
Expand Down Expand Up @@ -1840,7 +1840,7 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
if (IS_ERR(dest_net))
return PTR_ERR(dest_net);

dev = rtnl_create_link(net, dest_net, ifname, ops, tb);
dev = rtnl_create_link(dest_net, ifname, ops, tb);
if (IS_ERR(dev)) {
err = PTR_ERR(dev);
goto out;
Expand Down

0 comments on commit 0f2ddd9

Please sign in to comment.