ibmveth: Fix endian issues with rx_no_buffer statistic
authorAnton Blanchard <anton@samba.org>
Fri, 22 Aug 2014 01:36:52 +0000 (11:36 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:54:07 +0000 (14:54 -0700)
commit0d334226ee0ab486c884e9c130e8a7939146cf23
tree8782386371e3f498d8676bf7a3892f79befc0f20
parent4e2bd06d10715dea684e882d5731300ad4eeab88
ibmveth: Fix endian issues with rx_no_buffer statistic

commit cbd5228199d8be45d895d9d0cc2b8ce53835fc21 upstream.

Hidden away in the last 8 bytes of the buffer_list page is a solitary
statistic. It needs to be byte swapped or else ethtool -S will
produce numbers that terrify the user.

Since we do this in multiple places, create a helper function with a
comment explaining what is going on.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmveth.c