bonding: use ether_addr_equal_unaligned for bond addr compare
authordingtianhong <dingtianhong@huawei.com>
Thu, 2 Jan 2014 01:12:54 +0000 (09:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2014 03:58:15 +0000 (22:58 -0500)
commit815117adaf5b87155a73d2b4b9c556977bad51cb
tree7dd00b30af601f17cbf9e359c071c5fcaace0bfb
parent4b903e30bb24db592f3d52b9dd80744c3556705c
bonding: use ether_addr_equal_unaligned for bond addr compare

Use possibly more efficient ether_addr_equal_64bits
to instead of memcmp.

Modify the MAC_ADDR_COMPARE to MAC_ADDR_EQUAL, this looks more
appropriate.

The comments for the bond 3ad is too old, cleanup some errors
and warming.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c