Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327396
b: refs/heads/master
c: e6f8f1a
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Aug 9, 2012
1 parent 99aa985 commit 6108409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c7dafbfab1554705f85523fead578aa1a3d338c
refs/heads/master: e6f8f1a739b652c56e6f959d6714d92e05621e21
3 changes: 3 additions & 0 deletions trunk/drivers/net/veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ static int veth_newlink(struct net *src_net, struct net_device *dev,
if (tbp[IFLA_ADDRESS] == NULL)
eth_hw_addr_random(peer);

if (ifmp && (dev->ifindex != 0))
peer->ifindex = ifmp->ifi_index;

err = register_netdevice(peer);
put_net(net);
net = NULL;
Expand Down

0 comments on commit 6108409

Please sign in to comment.