From: Anton Blanchard <[email protected]> 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. > > 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 <[email protected]> > Cc: [email protected] Applied, thanks Anton. > - memcpy(&adapter->mac_addr, mac_addr_p, ETH_ALEN); ... > - unsigned long mac_addr; That's some scary stuff right there. _______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
