diff options
author | Anton Blanchard <anton@samba.org> | 2014-03-05 04:51:37 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-06 22:26:41 +0100 |
commit | d746ca9561440685edb62614d1bcbbc27ff50e66 (patch) | |
tree | fff2faf0d6582bf7d69655b5ea5e1e05a8ac7ca8 /net/ipv6/exthdrs_offload.c | |
parent | net: unix socket code abuses csum_partial (diff) | |
download | linux-d746ca9561440685edb62614d1bcbbc27ff50e66.tar.xz linux-d746ca9561440685edb62614d1bcbbc27ff50e66.zip |
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>
Diffstat (limited to 'net/ipv6/exthdrs_offload.c')
0 files changed, 0 insertions, 0 deletions