kni: add build option to disable preempting
authorMarc Sune <marc.sune@bisdn.de>
Fri, 13 Feb 2015 14:25:25 +0000 (15:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Feb 2015 17:49:19 +0000 (18:49 +0100)
commit16eaf25232ee9b880fe855bac4e8a5cf37b9e907
tree00b434961cb7d0d84100a06202e4fb6c6182a3ad
parent6597fc642dd218f4b60f7451b107ab4fb6846b96
kni: add build option to disable preempting

This patch introduces CONFIG_RTE_KNI_PREEMPT_DEFAULT flag. When set to 'no',
KNI kernel thread(s) do not call schedule_timeout_interruptible(), which
improves overall KNI performance at the expense of CPU cycles (polling).

Default values is 'yes', maintaining the same behaviour as of now.

Signed-off-by: Marc Sune <marc.sune@bisdn.de>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
config/common_linuxapp
lib/librte_eal/linuxapp/kni/kni_misc.c