diff options
author | Joe Perches <joe@perches.com> | 2014-02-18 09:42:45 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-19 15:37:51 -0500 |
commit | 2a7c183bc7ae798915c4bc58d3bf413fe466705b (patch) | |
tree | 216ea76f1cbcfb55ba52819fa4360702bcb381f2 /drivers/net/bonding/bond_alb.c | |
parent | 4cc5c475797ae9152738d8ea53131576083e4d5b (diff) |
bonding: More use of ether_addr_copy
It's smaller and faster for some architectures.
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index 538913e62715..97a43a20dae8 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c @@ -1449,9 +1449,8 @@ int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev) if (tx_slave && SLAVE_IS_OK(tx_slave)) { if (tx_slave != rcu_dereference(bond->curr_active_slave)) { - memcpy(eth_data->h_source, - tx_slave->dev->dev_addr, - ETH_ALEN); + ether_addr_copy(eth_data->h_source, + tx_slave->dev->dev_addr); } bond_dev_queue_xmit(bond, skb, tx_slave->dev); |