From: Amit Bernstein Date: Tue, 26 Jan 2021 18:32:23 +0000 (+0100) Subject: net/ena: fix Tx doorbell statistics X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1f949ad90bb558d0b10756bff7bfa909ff9ff7b3;p=dpdk.git net/ena: fix Tx doorbell statistics Increment Tx doorbell statistics on tx_pkt_burst after writing to doorbell and in case max burst size achieved Fixes: c7519ea5eb8d ("net/ena: call additional doorbells if needed") Cc: stable@dpdk.org Signed-off-by: Amit Bernstein Reviewed-by: Michal Krawczyk Reviewed-by: Igor Chauskin --- diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index dde6e9ce8b..623b6dd2a0 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -2519,6 +2519,7 @@ static int ena_xmit_mbuf(struct ena_ring *tx_ring, struct rte_mbuf *mbuf) "llq tx max burst size of queue %d achieved, writing doorbell to send burst\n", tx_ring->id); ena_com_write_sq_doorbell(tx_ring->ena_com_io_sq); + tx_ring->tx_stats.doorbells++; } /* prepare the packet's descriptors to dma engine */