Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273510
b: refs/heads/master
c: deede2f
h: refs/heads/master
v: v3
  • Loading branch information
Matthijs Kooijman authored and David S. Miller committed Nov 1, 2011
1 parent d903adf commit df05506
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 045f7b3b0005bf30ad8d664c7651d816e2650cd2
refs/heads/master: deede2fabe24e00bd7e246eb81cd5767dc6fcfc7
10 changes: 6 additions & 4 deletions trunk/net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,12 @@ static void vlan_dev_change_rx_flags(struct net_device *dev, int change)
{
struct net_device *real_dev = vlan_dev_info(dev)->real_dev;

if (change & IFF_ALLMULTI)
dev_set_allmulti(real_dev, dev->flags & IFF_ALLMULTI ? 1 : -1);
if (change & IFF_PROMISC)
dev_set_promiscuity(real_dev, dev->flags & IFF_PROMISC ? 1 : -1);
if (dev->flags & IFF_UP) {
if (change & IFF_ALLMULTI)
dev_set_allmulti(real_dev, dev->flags & IFF_ALLMULTI ? 1 : -1);
if (change & IFF_PROMISC)
dev_set_promiscuity(real_dev, dev->flags & IFF_PROMISC ? 1 : -1);
}
}

static void vlan_dev_set_rx_mode(struct net_device *vlan_dev)
Expand Down

0 comments on commit df05506

Please sign in to comment.