Skip to contentSkip to conversation

ibmvnic: Do not reset dql stats on NON_FATAL err

PATCH Jakub Kicinski 1 participant 1 message Jun 29, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jakub Kicinski

author maintainer Applied
#1 lore raw
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 the num_queued and num_completed byte 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 to netdev_tx_completed_queue(). It is important to note that the driver batches its transmit calls and num_queued is 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!