Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103455
b: refs/heads/master
c: b89fb7d
h: refs/heads/master
i:
  103453: b10bc47
  103451: 47b66e0
  103447: 8fb7cc2
  103439: 15cd2a6
  103423: 088dc75
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Jul 15, 2008
1 parent 64346dd commit 1e1b1a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: 7dc00c82cbb0119cf4663f65bbaa2cc55f961db2
refs/heads/master: b89fb7da2f9a69dd34ff10d45f66baa40ff8c0e5
14 changes: 11 additions & 3 deletions trunk/drivers/net/macvlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,20 @@ static int macvlan_open(struct net_device *dev)

err = dev_unicast_add(lowerdev, dev->dev_addr, ETH_ALEN);
if (err < 0)
return err;
if (dev->flags & IFF_ALLMULTI)
dev_set_allmulti(lowerdev, 1);
goto out;
if (dev->flags & IFF_ALLMULTI) {
err = dev_set_allmulti(lowerdev, 1);
if (err < 0)
goto del_unicast;
}

hlist_add_head_rcu(&vlan->hlist, &port->vlan_hash[dev->dev_addr[5]]);
return 0;

del_unicast:
dev_unicast_delete(lowerdev, dev->dev_addr, ETH_ALEN);
out:
return err;
}

static int macvlan_stop(struct net_device *dev)
Expand Down

0 comments on commit 1e1b1a0

Please sign in to comment.