From: Anton Blanchard Date: Wed, 5 Mar 2014 03:51:37 +0000 (+1100) Subject: ibmveth: Fix endian issues with MAC addresses X-Git-Tag: v3.14-rc7~10^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d746ca9561440685edb62614d1bcbbc27ff50e66;p=pandora-kernel.git 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 Cc: stable@vger.kernel.org Signed-off-by: David S. Miller --- Reading git-diff-tree failed