[ovs-dev] [PATCH V2 04/10] dpif-netdev: Add poll-mode-device thread.

Ben Pfaff blp at nicira.com
Sat Mar 22 17:03:42 UTC 2014


On Fri, Mar 21, 2014 at 11:03:18AM -0700, Pravin wrote:
> This patch adds PMD type netdev for netdevice with poll-mode
> drivers.  Since there is no way to get signal on a packet recv
> from these devices we need to poll them in busy loop.  So minimize
> system call overhead this patch uses dpif-thread exclusively
> for PMD devices and rest of devices which needs system calls to
> do IO are moved to dpif-netdev-run().
> PMD device like DPDK work in userspace so there is no system call
> overhead for them.
> 
> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
> ---
> v1-v2:
> Fixed according to comments from Ben.
> Since we have ref on port no need to take port_rwlock. So Removed
> port_rwlock thread sefty checks from fast-path functions.

Thanks for fixing the issues I reported.  I don't think I need to review
this again.



More information about the dev mailing list