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_3ad.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_3ad.c')
-rw-r--r-- | drivers/net/bonding/bond_3ad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c index e362ff720e6b..87348411bafe 100644 --- a/drivers/net/bonding/bond_3ad.c +++ b/drivers/net/bonding/bond_3ad.c @@ -2384,8 +2384,8 @@ int __bond_3ad_get_active_agg_info(struct bonding *bond, ad_info->ports = aggregator->num_of_ports; ad_info->actor_key = aggregator->actor_oper_aggregator_key; ad_info->partner_key = aggregator->partner_oper_aggregator_key; - memcpy(ad_info->partner_system, - aggregator->partner_system.mac_addr_value, ETH_ALEN); + ether_addr_copy(ad_info->partner_system, + aggregator->partner_system.mac_addr_value); return 0; } |