cxgb4: Fix pause frame count in t4_get_port_stats
authorGanesh Goudar <ganeshgr@chelsio.com>
Mon, 4 Sep 2017 05:47:36 +0000 (11:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Sep 2017 21:27:50 +0000 (14:27 -0700)
commit2de489f486219fd52e85b336f4feb9b3c4c09617
tree5e2d11c4b1b4e2a75bf8b5e7781ad0c6313c7974
parent128416acea9ffda4b6a0e08c8d549572e87533cd
cxgb4: Fix pause frame count in t4_get_port_stats

MPS_STAT_CTL[CountPauseStatTx] and MPS_STAT_CTL[CountPauseStatRx]
only control whether or not Pause Frames will be counted as part
of the 64-Byte Tx/Rx Frame counters.  These bits do not control
whether Pause Frames are counted in the Total Tx/Rx Frames/Bytes
counters.

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c