ibmvnic: Do not reset dql stats on NON_FATAL err
Subsystems (2)
Quoted 4 lines · On Wed, 28 Jun 2023 13:22:44 -0500 Nick Child wrote:
All ibmvnic resets, make a call to
netdev_tx_reset_queue()when re-opening the device.netdev_tx_reset_queue()resets thenum_queuedandnum_completedbyte counters. These stats are used in Byte Queue Limit (BQL) algorithms. The difference between these two stats tracks
Quoted 8 lines
the number of bytes currently sitting on the physical NIC. ibmvnic increases the number of queued bytes though calls to
netdev_tx_sent_queue()in the drivers xmit function. When, VIOS reports that it is done transmitting bytes, the ibmvnic device increases the number of completed bytes through calls tonetdev_tx_completed_queue(). It is important to note that the driver batches its transmit calls andnum_queuedis increased every time that an skb is added to the next batch, not necessarily when the batch is sent to VIOS for transmission.
Applied, thanks!