[PATCH 05/12] net/gve: do not count unsent DQO Tx packets as oerrors

Joshua Washington joshwash at google.com
Fri Dec 4 00:26:28 CET 2026


In DPDK, unsent packets in a burst due to ring exhaustion are returned
to the application. Such packets should not be counted as errors, as
they were not dropped, and the packets themselves have no errors.
gve_tx_burst_dqo() erroneously counts such packets as oerrors,
artificially inflating the statistic.

Count only packets actually dropped and freed by the driver
(nb_tx - nb_sent) in errors.

Fixes: 98e3bbc9159b ("net/gve: support basic stats for DQO")
Cc: stable at dpdk.org

Signed-off-by: Joshua Washington <joshwash at google.com>
Reviewed-by: Jasper Tran O'Leary <jtranoleary at google.com>
---
 drivers/net/gve/gve_tx_dqo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/gve/gve_tx_dqo.c b/drivers/net/gve/gve_tx_dqo.c
index 72730eb1c5..db432fd2f6 100644
--- a/drivers/net/gve/gve_tx_dqo.c
+++ b/drivers/net/gve/gve_tx_dqo.c
@@ -480,7 +480,7 @@ gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
 
 		txq->stats.packets += nb_sent;
 		txq->stats.bytes += bytes;
-		txq->stats.errors += nb_pkts - nb_sent;
+		txq->stats.errors += nb_tx - nb_sent;
 	}
 
 	return nb_tx;
-- 
2.56.1.915.g69d5ec7298-goog



More information about the stable mailing list