ibmvnic: Fix endian error when requesting device capabilities
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 15 Feb 2017 16:32:11 +0000 (10:32 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2017 19:48:31 +0000 (14:48 -0500)
commit28f4d16570dcf440e54a4d72666d5be452f27d0e
tree343341060351c73a5321fddc780dfe473aa02036
parent7627ae6030f56a9a91a5b3867b21f35d79c16e64
ibmvnic: Fix endian error when requesting device capabilities

When a vNIC client driver requests a faulty device setting, the
server returns an acceptable value for the client to request.
This 64 bit value was incorrectly being swapped as a 32 bit value,
resulting in loss of data. This patch corrects that by using
the 64 bit swap function.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c