Re: [PATCH] ibmveth: Fix endian issues with rx_no_buffer statistic

2014-08-22 Thread David Miller
From: Anton Blanchard Date: Fri, 22 Aug 2014 11:36:52 +1000 > 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 f

[PATCH] ibmveth: Fix endian issues with rx_no_buffer statistic

2014-08-21 Thread Anton Blanchard
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: Anto