summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/ibmveth.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-03-05 14:51:37 +1100
committerDavid S. Miller <davem@davemloft.net>2014-03-06 16:26:41 -0500
commitd746ca9561440685edb62614d1bcbbc27ff50e66 (patch)
treefff2faf0d6582bf7d69655b5ea5e1e05a8ac7ca8 /drivers/net/ethernet/ibm/ibmveth.h
parent0a13404dd3bf4ea870e3d96270b5a382edca85c0 (diff)
ibmveth: Fix endian issues with MAC addresses
The code to load a MAC address into a u64 for passing to the hypervisor via a register is broken on little endian. Create a helper function called ibmveth_encode_mac_addr which does the right thing in both big and little endian. We were storing the MAC address in a long in struct ibmveth_adapter. It's never used so remove it - we don't need another place in the driver where we create endian issues with MAC addresses. Signed-off-by: Anton Blanchard <anton@samba.org> Cc: stable@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmveth.h')
-rw-r--r--drivers/net/ethernet/ibm/ibmveth.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmveth.h b/drivers/net/ethernet/ibm/ibmveth.h
index 451ba7949e1..1f37499d439 100644
--- a/drivers/net/ethernet/ibm/ibmveth.h
+++ b/drivers/net/ethernet/ibm/ibmveth.h
@@ -138,7 +138,6 @@ struct ibmveth_adapter {
struct napi_struct napi;
struct net_device_stats stats;
unsigned int mcastFilterSize;
- unsigned long mac_addr;
void * buffer_list_addr;
void * filter_list_addr;
dma_addr_t buffer_list_dma;