Re: ibmveth: Fix endian issues with MAC addresses

2014-03-06 Thread David Miller
From: Anton Blanchard Date: Wed, 5 Mar 2014 14:51:37 +1100 > 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

ibmveth: Fix endian issues with MAC addresses

2014-03-04 Thread Anton Blanchard
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