Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352403
b: refs/heads/master
c: b274826
h: refs/heads/master
i:
  352401: 5e88e89
  352399: f703788
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Feb 11, 2013
1 parent 3efa036 commit 2caf374
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 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: 2c5e89338493882719f8d138f8f2717ee9a04153
refs/heads/master: b2748267d6487857f1400dc42748c5409e0ee130
1 change: 0 additions & 1 deletion trunk/net/bridge/br_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ static int br_set_mac_address(struct net_device *dev, void *p)
br_fdb_change_mac_address(br, addr->sa_data);
br_stp_change_bridge_id(br, addr->sa_data);
}
br->flags |= BR_SET_MAC_ADDR;
spin_unlock_bh(&br->lock);

return 0;
Expand Down
3 changes: 0 additions & 3 deletions trunk/net/bridge/br_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ struct net_bridge
bool nf_call_ip6tables;
bool nf_call_arptables;
#endif
unsigned long flags;
#define BR_SET_MAC_ADDR 0x00000001

u16 group_fwd_mask;

/* STP */
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/bridge/br_stp_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ bool br_stp_recalculate_bridge_id(struct net_bridge *br)
struct net_bridge_port *p;

/* user has chosen a value so keep it */
if (br->flags & BR_SET_MAC_ADDR)
if (br->dev->addr_assign_type == NET_ADDR_SET)
return false;

list_for_each_entry(p, &br->port_list, list) {
Expand Down

0 comments on commit 2caf374

Please sign in to comment.