netdev-dpdk: Allow changing NON_PMD_CORE_ID for testing purpose.
authorAlex Wang <alexw@nicira.com>
Wed, 4 Feb 2015 01:08:13 +0000 (17:08 -0800)
committerAlex Wang <alexw@nicira.com>
Wed, 11 Feb 2015 01:38:03 +0000 (17:38 -0800)
commitabb5943dbb8005a9de59c68e4d798fbd072d33f0
treeba009c599b4c792630ef075a4d7075eecd240ff6
parent9f33d4428c6fe1ab5670f3116c53eb00646f0f9a
netdev-dpdk: Allow changing NON_PMD_CORE_ID for testing purpose.

For testing purpose, developers may want to change the NON_PMD_CORE_ID
and use a different core for non-pmd threads.  Since the netdev-dpdk
module is hard-coded to assert the non-pmd threads using core 0, such
change will cause abortion of OVS.

This commit fixes the assertion and allows changing NON_PMD_CORE_ID.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/dpctl.c
lib/dpif-netdev.h
lib/netdev-dpdk.c
lib/netdev-dpdk.h