OpenCloudOS-Kernel/drivers/net/ethernet/ibm
Anton Blanchard d746ca9561 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>
2014-03-06 16:26:41 -05:00
..
ehea net: do not pretend FRAGLIST support 2013-12-02 17:16:29 -05:00
emac drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
Kconfig ibm-ethernet: delete stale MCA and duplicate PSERIES dependency 2013-06-03 00:24:31 -07:00
Makefile net: powerpc: remove the legacy iSeries ethernet driver 2012-03-09 23:41:26 -05:00
ibmveth.c ibmveth: Fix endian issues with MAC addresses 2014-03-06 16:26:41 -05:00
ibmveth.h ibmveth: Fix endian issues with MAC addresses 2014-03-06 16:26:41 -05:00