diff options
| author | Qiuwen Lu <[email protected]> | 2017-03-28 10:46:45 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2017-03-28 10:46:45 +0800 |
| commit | 5b382d5647c2ecd93516a7d20e4361a0e942b0d7 (patch) | |
| tree | 3cdab2655880dba6c086a89a3d9f15e60de6a0c0 /examples | |
| parent | 4a36ba10662ed704de163bffe1b4bf11229841e4 (diff) | |
增加APP线程初始化锁,避免多线程同时初始化时线程号计算错误。适配DPDK17.02。为提高性能,临时关闭FTX通道。
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/l2fwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/l2fwd.c b/examples/l2fwd.c index 0f9f385..585dc02 100644 --- a/examples/l2fwd.c +++ b/examples/l2fwd.c @@ -5,11 +5,11 @@ #include <stdlib.h> #include <pthread.h> -static char appsym[64] = "mrtest-l2fwd"; +static char appsym[64] = "mrfwd"; static char dev_1_symbol[64] = "meth0"; static char dev_2_symbol[64] = "meth1"; -uint64_t cpu_mask = 0xff; +uint64_t cpu_mask = 0x3c; unsigned int nr_thread; struct mr_instance * mr_instance = NULL; |
