2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-13 14:07:02 +00:00

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>
This commit is contained in:
Alex Wang
2015-02-03 17:08:13 -08:00
parent 9f33d4428c
commit abb5943dbb
4 changed files with 12 additions and 8 deletions

View File

@@ -42,7 +42,6 @@ static inline void dp_packet_pad(struct ofpbuf *b)
#define NR_QUEUE 1
#define NR_PMD_THREADS 1
#define NON_PMD_CORE_ID 0
#ifdef __cplusplus
}