]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Convert memcpy(foo, bar, ETH_ALEN) to ether_addr_copy(foo, bar)
authorJoe Perches <joe@perches.com>
Sun, 16 Feb 2014 00:02:17 +0000 (16:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2014 05:29:23 +0000 (00:29 -0500)
commit2580ac992deb8a1a45f448b1313322b2a128961c
tree4320eccba2fcbfd3005ce48fd226b2eafbb0d2f0
parent8f28a93079fe1b278eaf5f3aba0b587b835ba6c8
bonding: Convert memcpy(foo, bar, ETH_ALEN) to ether_addr_copy(foo, bar)

ether_addr_copy is smaller and faster for some architectures.

This relies on a stack frame being at least __aligned(2)
for one use of an Ethernet address on the stack.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c