diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2017-08-18 17:02:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-19 02:30:16 +0300 |
commit | 1b631424e8244722419ebf6ba1fa5a7d72e675c2 (patch) | |
tree | 4ab29f6e173c01d5f52cf276e4c07f5ff435ffc8 | |
parent | 25ff96a9dc9c6a5a21778c36cb1e7175128d2071 (diff) | |
download | linux-1b631424e8244722419ebf6ba1fa5a7d72e675c2.tar.xz |
amd-xgbe: Update TSO packet statistics accuracy
When transmitting a TSO packet, the driver only increments the TSO packet
statistic by one rather than the number of total packets that were sent.
Update the driver to record the total number of packets that resulted from
TSO transmit.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-dev.c b/drivers/net/ethernet/amd/xgbe/xgbe-dev.c index 06f953e1e9b2..bb60507d3d9b 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-dev.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-dev.c @@ -1740,7 +1740,7 @@ static void xgbe_dev_xmit(struct xgbe_channel *channel) XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, TCPHDRLEN, packet->tcp_header_len / 4); - pdata->ext_stats.tx_tso_packets++; + pdata->ext_stats.tx_tso_packets += packet->tx_packets; } else { /* Enable CRC and Pad Insertion */ XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, CPC, 0); |