Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150956
b: refs/heads/master
c: 5c5129b
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jun 14, 2009
1 parent 14f16e7 commit 15c5ee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 373500db927706d1f60785aff40b9884f789b01a
refs/heads/master: 5c5129b54f2f346c86cd23fea67e71b45f7f84ff
4 changes: 2 additions & 2 deletions trunk/drivers/net/bonding/bond_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/ctype.h>
#include <linux/inet.h>
#include <linux/rtnetlink.h>
#include <linux/etherdevice.h>
#include <net/net_namespace.h>

#include "bonding.h"
Expand Down Expand Up @@ -275,10 +276,9 @@ static ssize_t bonding_store_slaves(struct device *d,
/* If this is the first slave, then we need to set
the master's hardware address to be the same as the
slave's. */
if (!(*((u32 *) & (bond->dev->dev_addr[0])))) {
if (is_zero_ether_addr(bond->dev->dev_addr))
memcpy(bond->dev->dev_addr, dev->dev_addr,
dev->addr_len);
}

/* Set the slave's MTU to match the bond */
original_mtu = dev->mtu;
Expand Down

0 comments on commit 15c5ee5

Please sign in to comment.