On Tue, Sep 9, 2014 at 5:00 PM, Alex Wang <al...@nicira.com> wrote:
> 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 <al...@nicira.com>

LGTM
Acked-by: Pravin B Shelar <pshe...@nicira.com>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to