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)
committerZefan Li <lizefan@huawei.com>
Thu, 25 Sep 2014 03:49:09 +0000 (11:49 +0800)
commit9220628427bc4e3fae475a150648b758f06ddfae
tree7ab1d53b29d01ab12c9dbee59e655fc78ce94e68
parentc27d3b507ecfb78ce9d3ce9a02c0297a32001548
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: Zefan Li <lizefan@huawei.com>
drivers/net/ethernet/ibm/ibmveth.c