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

Thomas Graf tgraf at redhat.com
Fri Mar 21 21:55:42 UTC 2014


On 03/21/2014 07:03 PM, 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.

LGTM

Acked-by: Thomas Graf <tgraf at redhat.com>




More information about the dev mailing list