summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bgmac.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-12-07 00:44:21 +0100
committerDavid S. Miller <davem@davemloft.net>2013-12-10 02:58:11 +0100
commit2c722fe1c821a100ca87fcc36e90a9bceb497c7c (patch)
treebe96c28923670d0daa2119e414efa9c52991928d /drivers/net/ethernet/broadcom/bgmac.h
parentbatadv: Slight optimization of batadv_compare_eth (diff)
downloadlinux-2c722fe1c821a100ca87fcc36e90a9bceb497c7c.tar.xz
linux-2c722fe1c821a100ca87fcc36e90a9bceb497c7c.zip
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/ethernet/broadcom/bgmac.h')
0 files changed, 0 insertions, 0 deletions