* [dpdk-dev] [PATCH] net/ena: fix counting of per-queue number of Tx pkts
@ 2019-05-14 11:11 Rafal Kozik
2019-05-14 11:11 ` Rafal Kozik
2019-06-06 14:33 ` Ferruh Yigit
0 siblings, 2 replies; 3+ messages in thread
From: Rafal Kozik @ 2019-05-14 11:11 UTC (permalink / raw)
To: dev; +Cc: mw, mk, gtzalik, evgenys, matua, igorch, Rafal Kozik, stable
Instead of counting number of used NIC Tx bufs just count number
of Tx packets.
Fixes: 45b6d86184fc ("net/ena: add per-queue software counters stats")
Cc: stable@dpdk.org
Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
---
drivers/net/ena/ena_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 3eb3816..178c230 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -2391,7 +2391,7 @@ static uint16_t eth_ena_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
tx_info->tx_descs = nb_hw_desc;
next_to_use++;
- tx_ring->tx_stats.cnt += tx_info->num_of_bufs;
+ tx_ring->tx_stats.cnt++;
tx_ring->tx_stats.bytes += total_length;
}
tx_ring->tx_stats.available_desc =
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dpdk-dev] [PATCH] net/ena: fix counting of per-queue number of Tx pkts
2019-05-14 11:11 [dpdk-dev] [PATCH] net/ena: fix counting of per-queue number of Tx pkts Rafal Kozik
@ 2019-05-14 11:11 ` Rafal Kozik
2019-06-06 14:33 ` Ferruh Yigit
1 sibling, 0 replies; 3+ messages in thread
From: Rafal Kozik @ 2019-05-14 11:11 UTC (permalink / raw)
To: dev; +Cc: mw, mk, gtzalik, evgenys, matua, igorch, Rafal Kozik, stable
Instead of counting number of used NIC Tx bufs just count number
of Tx packets.
Fixes: 45b6d86184fc ("net/ena: add per-queue software counters stats")
Cc: stable@dpdk.org
Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
---
drivers/net/ena/ena_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 3eb3816..178c230 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -2391,7 +2391,7 @@ static uint16_t eth_ena_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
tx_info->tx_descs = nb_hw_desc;
next_to_use++;
- tx_ring->tx_stats.cnt += tx_info->num_of_bufs;
+ tx_ring->tx_stats.cnt++;
tx_ring->tx_stats.bytes += total_length;
}
tx_ring->tx_stats.available_desc =
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] net/ena: fix counting of per-queue number of Tx pkts
2019-05-14 11:11 [dpdk-dev] [PATCH] net/ena: fix counting of per-queue number of Tx pkts Rafal Kozik
2019-05-14 11:11 ` Rafal Kozik
@ 2019-06-06 14:33 ` Ferruh Yigit
1 sibling, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2019-06-06 14:33 UTC (permalink / raw)
To: Rafal Kozik, dev; +Cc: mw, mk, gtzalik, evgenys, matua, igorch, stable
On 5/14/2019 12:11 PM, Rafal Kozik wrote:
> Instead of counting number of used NIC Tx bufs just count number
> of Tx packets.
>
> Fixes: 45b6d86184fc ("net/ena: add per-queue software counters stats")
> Cc: stable@dpdk.org
>
> Signed-off-by: Rafal Kozik <rk@semihalf.com>
> Acked-by: Michal Krawczyk <mk@semihalf.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-06 14:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14 11:11 [dpdk-dev] [PATCH] net/ena: fix counting of per-queue number of Tx pkts Rafal Kozik
2019-05-14 11:11 ` Rafal Kozik
2019-06-06 14:33 ` Ferruh Yigit
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).