ibmvnic: Fix ibmvnic_change_mac_addr struct format
authorMurilo Fossa Vicentini <muvic@linux.vnet.ibm.com>
Wed, 19 Apr 2017 17:44:35 +0000 (13:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2017 17:33:52 +0000 (13:33 -0400)
commit993a82b0ff03b356c0001561ca7035b02c5e7bae
tree8b8f3f2e27f8bb77d04682a1c0535fbc7473d2ca
parentffa738555b917c5b78f2dc1aa4f29078c605bb94
ibmvnic: Fix ibmvnic_change_mac_addr struct format

The ibmvnic_change_mac_addr struct alignment was not matching the defined
format in PAPR+, it had the reserved and return code fields swapped. As a
consequence, the CHANGE_MAC_ADDR_RSP commands were being improperly handled
and executed even when the operation wasn't successfully completed by the
system firmware.

Also changing the endianness of the debug message to make it easier to
parse the CRQ content.

Signed-off-by: Murilo Fossa Vicentini <muvic@linux.vnet.ibm.com>
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h