When sending a burst of output packets on a stopped transmit queue, the packets are written to a memory mapped address. On queue start the packets are processed and transmitted by the NIC.
Signed-off-by: Oleksandr Kolomeiets <okl-...@napatech.com> --- drivers/net/ntnic/ntnic_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic/ntnic_ethdev.c index 79ef9e7e7c..4145128d11 100644 --- a/drivers/net/ntnic/ntnic_ethdev.c +++ b/drivers/net/ntnic/ntnic_ethdev.c @@ -694,6 +694,10 @@ static uint16_t eth_dev_tx_scg(void *queue, struct rte_mbuf **bufs, uint16_t nb_ int pkts_sent = 0; uint16_t nb_segs_arr[MAX_TX_PACKETS]; + if (!tx_q->enabled) + NT_LOG(WRN, NTNIC, "Trying to send a burst of output packets " + "on a stopped transmit queue of an Ethernet device"); + if (nb_pkts > MAX_TX_PACKETS) nb_pkts = MAX_TX_PACKETS; -- 2.47.1