Re: [ovs-dev] [PATCH v3 08/18] dpif-netdev: Block pmd threads if there are no ports.

2017-01-13 Thread Ben Pfaff
On Sun, Jan 08, 2017 at 07:15:06PM -0800, Daniele Di Proietto wrote: > +if (!poll_cnt) { > +while (seq_read(pmd->reload_seq) == pmd->last_reload_seq) { > +seq_wait(pmd->reload_seq, pmd->last_reload_seq); > +poll_block(); > +} > +lc = 1025; 1025

[ovs-dev] [PATCH v3 08/18] dpif-netdev: Block pmd threads if there are no ports.

2017-01-08 Thread Daniele Di Proietto
There's no reason for a pmd thread to perform its main loop if there are no queues in its poll_list. This commit introduces a seq object on which the pmd thread can be blocked, if there are no queues. When the main thread wants to reload a pmd threads it must now change the seq object (in case