Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev-dpdk: Add indicator for flushing tx queue.
Previous commit makes OVS create one tx queue for each cpu core. An upcoming patch will allow multiple pmd threads be created and pinned to cpu cores. So each pmd thread will use the tx queue corresponding to its core id. Moreover, the pmd threads running on different numa node than the dpdk interface (called non-local pmd thread) will not handle the rx of the interface. Consequently, there need to be a way to flush the tx queues of the non-local pmd threads. To address the queue flushing issue, this commit introduces a new flag 'flush_tx' in the 'struct dpdk_tx_queue' which is set if the queue is to be used by a non-local pmd thread. Then, when enqueueing the tx pkts, if the flag is set, the tx queue will always be flushed immediately after the enqueue. Signed-off-by: Alex Wang <[email protected]> Acked-by: Pravin B Shelar <[email protected]>
- Loading branch information