diff options
author | Anton Blanchard <anton@samba.org> | 2014-03-26 10:25:37 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-26 11:24:37 (GMT) |
commit | ad727c5a26d6a7833471ffe06be55d296f8ce7d9 (patch) | |
tree | a537a65ba586b0f90fb997d549a242d5367ed87c /sound | |
parent | 59d9c5f94655a3cc63e2772e847509010598b7f1 (diff) | |
download | linux-fsl-qoriq-ad727c5a26d6a7833471ffe06be55d296f8ce7d9.tar.xz |
ibmveth: Fix endian issues with MAC addresses
commit d746ca9561440685edb62614d1bcbbc27ff50e66 upstream.
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Torsten Duwe <duwe@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions