]> git.baikalelectronics.ru Git - kernel.git/commit
etherdevice.h: Add ether_addr_equal_64bits
authorJoe Perches <joe@perches.com>
Wed, 9 May 2012 17:04:03 +0000 (17:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2012 03:33:01 +0000 (23:33 -0400)
commit0e9f548862ab6996311e7cd1511486edf6db7de9
tree9c0a9ba3234ceecf51f292bb2089ce787d993b8b
parentf5fa95f052a5a0e9c3b1cd119c35be2187cb3525
etherdevice.h: Add ether_addr_equal_64bits

Add an optimized boolean function to check if
2 ethernet addresses are the same.

This is to avoid any confusion about compare_ether_addr_64bits
returning an unsigned, and not being able to use the
compare_ether_addr_64bits function for sorting ala memcmp.

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