Re: [dpdk-dev] [PATCH v3] net/mlx5: return EAGAIN on premature disable interrupt calls

2020-07-22 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Ophir Munk > Sent: Tuesday, July 21, 2020 5:41 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Ophir Munk > ; Matan Azrad > Subject: [PATCH v3] net/mlx5: return EAGAIN on premature disable interrupt > calls > > RXQ interrupts under Linux are based on the

[dpdk-dev] [PATCH v3] net/mlx5: return EAGAIN on premature disable interrupt calls

2020-07-21 Thread Ophir Munk
RXQ interrupts under Linux are based on the epoll mechanism. An expected order of operations is as follows: 1. Call rte_eth_dev_rx_intr_enable(), to arm the CQ for receiving events on data input. 2. Block on rte_epoll_wait() with an array of file descriptors representing the CQ events. Upon data ar