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)
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

Simple merge