Skip to contentSkip to conversation

net/gve: add standard and extended statistics

PATCH New Levend Sayar 1 participant 1 message Feb 15, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 net/gve: add standard and extended statistics

TX side statistics is updated

---
 drivers/net/gve/gve_tx.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/gve/gve_tx.c +4 -4
index d4e52e3ea5..5c8a3b4379 100644
@@ -364,11 +364,11 @@ gve_tx_burst_qpl(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
 		rte_write32(rte_cpu_to_be_32(tx_tail), txq->qtx_tail);
 		txq->tx_tail = tx_tail;
 		txq->sw_tail = sw_id;
-	}
 
-	/* update stats */
-	txq->packets += nb_tx;
-	txq->bytes += total_len;
+		/* update stats */
+		txq->packets += nb_tx;
+		txq->bytes += total_len;
+	}
 
 	return nb_tx;
 }
Signature · 1 line
2.37.1 (Apple Git-137.1)