Re: [dpdk-dev] [PATCH v2] ethdev: check if queue setupped in queue-related APIs

2020-10-11 Thread Stephen Hemminger
On Mon, 12 Oct 2020 11:19:07 +0800 "Wei Hu (Xavier)" wrote: > + RTE_ETHDEV_LOG(ERR, > +"Queue %u of device with port_id=%u has not been" > +" setup\n", rx_queue_id, port_id); Please do not break lines in format strings. If check

[dpdk-dev] [PATCH v2] ethdev: check if queue setupped in queue-related APIs

2020-10-11 Thread Wei Hu (Xavier)
From: Chengchang Tang This patch adds checking whether the related Tx or Rx queue has been setupped in the queue-related API functions to avoid illegal address access. And validity check of the queue_id is also added in the API functions rte_eth_dev_rx_intr_enable and rte_eth_dev_rx_intr_disable.