etherdevice: Optimize a few is_<foo>_ether_addr functions
authorJoe Perches <joe@perches.com>
Fri, 6 Dec 2013 23:44:21 +0000 (15:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2013 01:58:11 +0000 (20:58 -0500)
commit2c722fe1c821a100ca87fcc36e90a9bceb497c7c
treebe96c28923670d0daa2119e414efa9c52991928d
parentd9cd4fe5ef4373e0f5b2e752b1859bee33bc5644
etherdevice: Optimize a few is_<foo>_ether_addr functions

If CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is set,
several is_<foo>_ether_addr functions can be slightly
improved by using u32 dereferences.

I believe all current uses of is_zero_ether_addr and
is_broadcast_ether_addr are u16 aligned, so always use
u16 references to improve those functions performance.

Document the u16 alignment requirements.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/etherdevice.h