Skip to content

Commit

Permalink
net/ena: fix Tx doorbell statistics
Browse files Browse the repository at this point in the history
[ upstream commit 1f949ad ]

Increment Tx doorbell statistics on tx_pkt_burst
after writing to doorbell and in case max burst size achieved

Fixes: c7519ea ("net/ena: call additional doorbells if needed")

Signed-off-by: Amit Bernstein <amitbern@amazon.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
  • Loading branch information
amitbern-aws authored and bluca committed Feb 4, 2021
1 parent 0a6b9a2 commit e48f990
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ena/ena_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e48f990

Please sign in to comment.