Re: [PATCH -next] etherdevice: Optimize a few is_<foo>_ether_addrfunctions
From: David Miller
Date: Mon Dec 09 2013 - 20:58:47 EST
From: Joe Perches <joe@xxxxxxxxxxx>
Date: Fri, 06 Dec 2013 15:44:21 -0800
> 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@xxxxxxxxxxx>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/