dpif-netdev: Add poll-mode-device thread.
authorPravin <pshelar@nicira.com>
Thu, 20 Mar 2014 17:57:41 +0000 (10:57 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 21 Mar 2014 18:48:28 +0000 (11:48 -0700)
commite4cfed38b159aba1ef44ed4a7b1f3e982b7358d4
tree2ccb4bcab2c5d740f6ca36091e2c423fef202273
parentb284085e550464aceb69c4891684d8f8574086ef
dpif-netdev: Add poll-mode-device thread.

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@nicira.com>
Acked-by: Thomas Graf <tgraf@redhat.com>
lib/dpif-netdev.c
lib/netdev.c
lib/netdev.h