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:52:10 +0000 (14:52 -0700)
commitbc5bc6c714776753338fdead82da7dc18fac50b6
treea2e0daa1c70e0147e3c24aa969e4c5dd1f5d1b9f
parent4d75fdbdc0f0c4043158554d85a90d70584ba3d4
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