summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-12-07 03:44:21 +0400
committerDavid S. Miller <davem@davemloft.net>2013-12-10 05:58:11 +0400
commit2c722fe1c821a100ca87fcc36e90a9bceb497c7c (patch)
treebe96c28923670d0daa2119e414efa9c52991928d /drivers/net
parentd9cd4fe5ef4373e0f5b2e752b1859bee33bc5644 (diff)
downloadlinux-2c722fe1c821a100ca87fcc36e90a9bceb497c7c.tar.xz
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>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions