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>
This commit is contained in:
parent
25ff96a9dc
commit
1b631424e8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue