etherdev: Process is_multicast_ether_addr at same size as other operations
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Thu, 30 Apr 2015 21:53:54 +0000 (14:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 02:30:36 +0000 (22:30 -0400)
commitd54385ce68cd18ab002b46f61246ad197cec92de
tree402dda30a5d94d0519d62ac25c03b3c32d08a188
parent849b920e17a2b1e9a3c912ca960dc667d27985e8
etherdev: Process is_multicast_ether_addr at same size as other operations

This change makes it so that we process the address in
is_multicast_ether_addr at the same size as the other calls.  This allows
us to avoid duplicate reads when used with other calls such as
is_zero_ether_addr or eth_addr_copy.  In addition I have added a 64 bit
version of the function so in eth_type_trans we can process the destination
address as a 64 bit value throughout.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/etherdevice.h
net/ethernet/eth.c