* [PATCH 3/3] net/gve: add standard and extended statistics
@ 2023-02-15 10:10 Levend Sayar
0 siblings, 0 replies; only message in thread
From: Levend Sayar @ 2023-02-15 10:10 UTC (permalink / raw)
To: junfeng.guo; +Cc: dev, Levend Sayar
TX side statistics is updated
Signed-off-by: Levend Sayar <levendsayar@gmail.com>
---
drivers/net/gve/gve_tx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/gve/gve_tx.c b/drivers/net/gve/gve_tx.c
index d4e52e3ea5..5c8a3b4379 100644
--- a/drivers/net/gve/gve_tx.c
+++ b/drivers/net/gve/gve_tx.c
@@ -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;
}
--
2.37.1 (Apple Git-137.1)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-15 10:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-15 10:10 [PATCH 3/3] net/gve: add standard and extended statistics Levend Sayar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).