]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Aug 2014 18:28:00 +0000 (11:28 -0700)
commit142a1a1c57addb0b5c22da38314a3a71d3428693
treedf032719e32933827db5e1ef205f257f5a0b54df
parent5425e544ff9fb7f67378d9769d50efad865242a4
ibmveth: Fix endian issues with rx_no_buffer statistic

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>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c