[dpdk-dev] [PATCH v13 4/4] performance-thread: avoid cross compilation fail

2021-10-20 Thread zhihongx . peng
From: Zhihong Peng Code changes to avoid the following ASan error: "strncpy specified bound XX equals destination size". Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng Acked-by: Bruce Richardson --- v11: Use rte_strlcpy to replace strncpy. v12: Delete rte_strlcpy's rte_. v13: Modify th

[dpdk-dev] [PATCH v13 3/4] code changes to avoid the ASan error

2021-10-20 Thread zhihongx . peng
From: Zhihong Peng Code changes to avoid the following ASan error: "Control reaches end of non-void function". Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng Acked-by: Cristian Dumitrescu --- v7: no change. v8: no change. v9: Modify the submit log. v10:no change. v11:no change. v12:Mod

[dpdk-dev] [PATCH v13 2/4] DPDK code adapts to ASan

2021-10-20 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported on Linux x86_64. If want to support on other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document, and configure meson file (config/meson.build). Signed-off-by: Xueqin Lin Signed-off-by: Zhiho

[dpdk-dev] [PATCH v13 1/4] enable ASan AddressSanitizer

2021-10-20 Thread zhihongx . peng
From: Zhihong Peng `AddressSanitizer `_ (ASan) is a widely-used debugging tool to detect memory access errors. It helps to detect issues like use-after-free, various kinds of buffer overruns in C/C++ programs, and other similar errors, a

[dpdk-dev] [PATCH v12 4/4] performance-thread: Fix cross compilation failed

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng The gcc(arm-linux-gcc) will check code more stricter when ASan enabled. "strncpy specified bound XX equals destination size" error occurs here. Fixes: 116819b9ed0d ("examples/performance-thread: add lthread subsystem") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off

[dpdk-dev] [PATCH v12 3/4] Code changes to avoid the ASan error

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng Code changes to avoid the following ASan error: "Control reaches end of non-void function". Cc: cristian.dumitre...@intel.com Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- v7: no change. v8: no change. v9: Modify the submit log. v10:no change. v11:no change. v12

[dpdk-dev] [PATCH v12 2/4] DPDK code adapts to ASan

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document, and configure meson (config/meson.build). Here is an example of heap-buffer-overflow bug: ..

[dpdk-dev] [PATCH v12 1/4] Enable ASan AddressSanitizer

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng `AddressSanitizer `_ (ASan) is a widely-used debugging tool to detect memory access errors. It helps detect issues like use-after-free, various kinds of buffer overruns in C/C++ programs, and other similar errors, as w

[dpdk-dev] [PATCH v12 4/4] performance-thread: Fix cross compilation failed

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng The gcc(arm-linux-gcc) will check code more stricter when ASan enabled. "strncpy specified bound XX equals destination size" error occurs here. Fixes: 116819b9ed0d ("examples/performance-thread: add lthread subsystem") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off

[dpdk-dev] [PATCH v12 1/4] Enable ASan Address Sanitization

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng `AddressSanitizer `_ (ASan) is a widely-used debugging tool to detect memory access errors. It helps detect issues like use-after-free, various kinds of buffer overruns in C/C++ programs, and other similar errors, as w

[dpdk-dev] [PATCH v12 3/4] Code changes to avoid the ASan error

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng Code changes to avoid the following ASan error: "Control reaches end of non-void function". Cc: cristian.dumitre...@intel.com Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- v7: no change. v8: no change. v9: Modify the submit log. v10:no change. v11:no change. v12

[dpdk-dev] [PATCH v12 2/4] DPDK code adapts to ASan

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document, and configure meson (config/meson.build). Here is an example of heap-buffer-overflow bug: ..

[dpdk-dev] [PATCH v12 4/4] performance-thread: Fix cross compilation failed

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng The gcc(arm-linux-gcc) will check code more stricter when ASan enabled. "strncpy specified bound XX equals destination size" error occurs here. Fixes: 116819b9ed0d ("examples/performance-thread: add lthread subsystem") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off

[dpdk-dev] [PATCH v12 3/4] pipeline: Fix compilation error with gcc ASan

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng The gcc will check code more stricter when ASan enabled. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e ("pipeline: add meter array to SWX") Cc: cristian.dumitre...@intel.com Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- v7: no

[dpdk-dev] [PATCH v12 2/4] DPDK code adapts to ASan

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document, and configure meson (config/meson.build). Here is an example of heap-buffer-overflow bug: ..

[dpdk-dev] [PATCH v12 1/4] Enable ASan for memory detector on DPDK

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng `AddressSanitizer `_ (ASan) is a widely-used debugging tool to detect memory access errors. It helps detect issues like use-after-free, various kinds of buffer overruns in C/C++ programs, and other similar errors, as w

[dpdk-dev] [PATCH v11 4/4] performance-thread: Fix cross compilation failed

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng The gcc(arm-linux-gcc) will check code more stricter when ASan enabled. "strncpy specified bound XX equals destination size" error occurs here. Fixes: 116819b9ed0d ("examples/performance-thread: add lthread subsystem") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off

[dpdk-dev] [PATCH v11 3/4] pipeline: Fix compilation error with gcc ASan

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng The gcc will check code more stricter when ASan enabled. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e ("pipeline: add meter array to SWX") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- v7: no change v8: no

[dpdk-dev] [PATCH v11 2/4] DPDK code adapts to ASan

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document, and configure meson (config/meson.build). Here is an example of heap-buffer-overflow bug: ..

[dpdk-dev] [PATCH v11 1/4] Enable ASan for memory detector on DPDK

2021-10-19 Thread zhihongx . peng
From: Zhihong Peng `AddressSanitizer `_ (ASan) is a widely-used debugging tool to detect memory access errors. It helps detect issues like use-after-free, various kinds of buffer overruns in C/C++ programs, and other similar errors, as w

[dpdk-dev] [PATCH v5] lib/cmdline: release cl when cmdline exit

2021-10-18 Thread zhihongx . peng
From: Zhihong Peng Malloc cl in the cmdline_stdin_new function, so release in the cmdline_stdin_exit function is logical, so that cl will not be released alone. Fixes: af75078fece3 ("first public release") Cc: intel.com Signed-off-by: Zhihong Peng --- app/test/test.c|

[dpdk-dev] [PATCH v10 4/4] performance-thread: Fix cross compilation failed

2021-10-15 Thread zhihongx . peng
From: Zhihong Peng The gcc(arm-linux-gcc) will check code more stricter when ASan enabled. "strncpy specified bound XX equals destination size" error occurs here. Fixes: 116819b9ed0d ("examples/performance-thread: add lthread subsystem") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off

[dpdk-dev] [PATCH v10 3/4] pipeline: Fix compilation error with gcc ASan

2021-10-15 Thread zhihongx . peng
From: Zhihong Peng The gcc will check code more stricter when ASan enabled. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e ("pipeline: add meter array to SWX") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- v7: no change v8: no

[dpdk-dev] [PATCH v10 2/4] DPDK code adapts to ASan

2021-10-15 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document, and configure meson (config/meson.build). Here is an example of heap-buffer-overflow bug: ..

[dpdk-dev] [PATCH v10 1/4] Enable ASan for memory detector on DPDK

2021-10-15 Thread zhihongx . peng
From: Zhihong Peng `AddressSanitizer ` (ASan) is a widely-used debugging tool to detect memory access errors. It helps detect issues like use-after-free, various kinds of buffer overruns in C/C++ programs, and other similar errors, as we

[dpdk-dev] [PATCH v10 4/4] performance-thread: Fix cross compilation failed

2021-10-15 Thread zhihongx . peng
From: Zhihong Peng The gcc(arm-linux-gcc) will check code more stricter when ASan enabled. "strncpy specified bound XX equals destination size" error occurs here. Fixes: 116819b9ed0d ("examples/performance-thread: add lthread subsystem") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off

[dpdk-dev] [PATCH v10 3/4] pipeline: Fix compilation error with gcc ASan

2021-10-15 Thread zhihongx . peng
From: Zhihong Peng The gcc will check code more stricter when ASan enabled. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e ("pipeline: add meter array to SWX") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rte_sw

[dpdk-dev] [PATCH v10 2/4] DPDK code adapts to ASan

2021-10-15 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document, and configure meson (config/meson.build). Here is an example of heap-buffer-overflow bug: ..

[dpdk-dev] [PATCH v10 1/4] Enable ASan for memory detector on DPDK

2021-10-15 Thread zhihongx . peng
From: Zhihong Peng `AddressSanitizer ` (ASan) is a widely-used debugging tool to detect memory access errors. It helps detect issues like use-after-free, various kinds of buffer overruns in C/C++ programs, and other similar errors, as we

[dpdk-dev] [PATCH v4 1/2] lib/cmdline: release cl when cmdline exit

2021-10-12 Thread zhihongx . peng
From: Zhihong Peng Malloc cl in the cmdline_stdin_new function, so release in the cmdline_stdin_exit function is logical, so that cl will not be released alone. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- doc/guides/rel_notes/release_21_11.

[dpdk-dev] [PATCH v4 2/2] app/test: delete cmdline free function

2021-10-12 Thread zhihongx . peng
From: Zhihong Peng Cmdline will be released in cmdline_stdin_exit function, so it does not need to be released here. Fixes: acdabc450ea0 ("test: fix terminal settings on exit") Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- app/test/test.c | 1 - app/test/test_cmdline_lib.c |

[dpdk-dev] [PATCH v9 3/3] pipeline: Fix compilation error with gcc ASan

2021-10-12 Thread zhihongx . peng
From: Zhihong Peng The gcc will check code more stricter when ASan enabled. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e ("pipeline: add meter array to SWX") Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- v7: no change v8: no

[dpdk-dev] [PATCH v9 2/3] DPDK code adapts to ASan

2021-10-12 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document, and configure meson (config/meson.build). Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- v7: Split

[dpdk-dev] [PATCH v9 1/3] Enable ASan for memory detector on DPDK

2021-10-12 Thread zhihongx . peng
From: Zhihong Peng `AddressSanitizer ` (ASan) is a widely-used debugging tool to detect memory access errors. It helps detect issues like use-after-free, various kinds of buffer overruns in C/C++ programs, and other similar errors, as we

[dpdk-dev] [PATCH v8 3/3] lib/pipeline: Fix compilation error with gcc ASan

2021-10-10 Thread zhihongx . peng
From: Zhihong Peng The gcc will check code more stricter when ASan enabled. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e (pipeline: add meter array to SWX) Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rte_swx_

[dpdk-dev] [PATCH v8 2/3] DPDK code adapts to ASan

2021-10-10 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document. Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/eal/common/malloc_elem.c | 26 - lib/eal/

[dpdk-dev] [PATCH v8 1/3] Enable ASan for memory detector on DPDK

2021-10-10 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. `AddressSanitizer

[dpdk-dev] [PATCH v7 2/3] DPDK code adapts to ASan

2021-10-08 Thread zhihongx . peng
From: Zhihong Peng DPDK ASan functionality is currently only supported Linux x86_64. Support other platforms, need to define ASAN_SHADOW_OFFSET value according to google ASan document. Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/eal/common/malloc_elem.c | 26 - lib/eal/

[dpdk-dev] [PATCH v7 1/3] Enable ASan for memory detector on DPDK

2021-10-08 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. `AddressSanitizer

[dpdk-dev] [PATCH v7 3/3] lib/pipeline: Fix compilation error with gcc ASan

2021-10-08 Thread zhihongx . peng
From: Zhihong Peng The gcc will check code more stricter when ASan enabled. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e (pipeline: add meter array to SWX) Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rte_swx_

[dpdk-dev] [PATCH v3 2/2] app/test: delete cmdline free function

2021-10-07 Thread zhihongx . peng
From: Zhihong Peng Cmdline will be released in cmdline_stdin_exit function, so it does not need to be released here. Fixes: acdabc450ea0 (test: fix terminal settings on exit) Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- app/test/test.c | 1 - app/test/test_cmdline_lib.c | 1

[dpdk-dev] [PATCH v3 1/2] lib/cmdline: release cl when cmdline exit

2021-10-07 Thread zhihongx . peng
From: Zhihong Peng Malloc cl in the cmdline_stdin_new function, so release in the cmdline_stdin_exit function is logical, so that cl will not be released alone. Fixes: af75078fece3 (first public release) Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- doc/guides/rel_notes/release_21_11.rs

[dpdk-dev] [PATCH v2] net/virtio: fix check scatter on all Rx queues

2021-10-07 Thread zhihongx . peng
From: Zhihong Peng This patch fixes the wrong way to obtain virtqueue. The end of virtqueue cannot be judged based on whether the array is NULL. Fixes: 4e8169eb0d2d (net/virtio: fix Rx scatter offload) Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- drivers/net/virtio/virtio_ethdev.c | 7

[dpdk-dev] [PATCH v6 2/2] lib/pipeline: Fix compilation error with gcc ASan

2021-09-30 Thread zhihongx . peng
From: Zhihong Peng After adding ASan, the gcc compilation check will be stricter. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e (pipeline: add meter array to SWX) Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rt

[dpdk-dev] [PATCH v6 1/2] Enable ASan for memory detector on DPDK

2021-09-30 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. `AddressSanitizer

[dpdk-dev] [PATCH v6 2/2] lib/pipeline: Fix gcc compilation error using ASan

2021-09-29 Thread zhihongx . peng
From: Zhihong Peng After adding ASan, the gcc compilation check will be stricter. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e (pipeline: add meter array to SWX) Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rt

[dpdk-dev] [PATCH v6 1/2] Enable ASan for memory detector on DPDK

2021-09-29 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. `AddressSanitizer

[dpdk-dev] [PATCH v5 2/2] lib/pipeline: Fix gcc compilation error using ASan

2021-09-24 Thread zhihongx . peng
From: Zhihong Peng After adding ASan, the gcc compilation check will be stricter. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e (pipeline: add meter array to SWX) Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rt

[dpdk-dev] [PATCH v5 1/2] Enable ASan for memory detector on DPDK

2021-09-24 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [PATCH v5 2/2] Fix gcc compilation error using ASan

2021-09-24 Thread zhihongx . peng
From: Zhihong Peng After adding ASan, the gcc compilation check will be stricter. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e (pipeline: add meter array to SWX) Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rt

[dpdk-dev] [PATCH v5 1/2] Enable ASan for memory detector on DPDK

2021-09-24 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [PATCH v4 2/2] lib/pipeline: Fix gcc compilation error using ASan

2021-09-23 Thread zhihongx . peng
From: Zhihong Peng After adding ASan, the gcc compilation check will be stricter. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e (pipeline: add meter array to SWX) Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rt

[dpdk-dev] [PATCH v4 1/2] Enable ASan for memory detector on DPDK

2021-09-23 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [PATCH v4 2/2] lib/pipeline: Fix gcc compilation error using ASan

2021-09-23 Thread zhihongx . peng
From: Zhihong Peng After adding ASan, the gcc compilation check will be stricter. "Control reaches end of non-void function" error occurs here. Fixes: f38913b7fb8e (pipeline: add meter array to SWX) Cc: sta...@dpdk.org Signed-off-by: Xueqin Lin Signed-off-by: Zhihong Peng --- lib/pipeline/rt

[dpdk-dev] [PATCH v4 1/2] Enable ASan for memory detector on DPDK

2021-09-23 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [PATCH v3] Enable AddressSanitizer feature on DPDK

2021-09-18 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [PATCH v2 2/2] app/test: Delete cmdline free function

2021-09-16 Thread zhihongx . peng
From: Zhihong Peng Cmdline will be released in cmdline_stdin_exit function, so it does not need to be released here. Fixes: acdabc450ea0 (test: fix terminal settings on exit) Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- app/test/test.c | 1 - app/test/test_cmdline_lib.c | 1

[dpdk-dev] [PATCH v2 1/2] lib/cmdline: release cl when cmdline exit

2021-09-16 Thread zhihongx . peng
From: Zhihong Peng Malloc cl in the cmdline_stdin_new function, so release in the cmdline_stdin_exit function is logical, so that cl will not be released alone. Fixes: af75078fece3 (first public release) Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- lib/cmdline/cmdline_socket.c | 1 + 1

[dpdk-dev] [PATCH v2] Enable AddressSanitizer feature on DPDK

2021-09-15 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [PATCH] Enable AddressSanitizer feature on DPDK

2021-09-09 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [PATCH] lib/cmdline: release cl when cmdline exit

2021-08-30 Thread zhihongx . peng
From: Zhihong Peng Malloc cl in the cmdline_stdin_new function, so release in the cmdline_stdin_exit function is logical, so that cl will not be released alone. Fixes: af75078fece3 (first public release) Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- lib/cmdline/cmdline_socket.c | 1 + 1

[dpdk-dev] [DPDK] net/virtio: fix check scatter on all Rx queues

2021-08-04 Thread zhihongx . peng
From: Zhihong Peng This patch fixes the wrong way to obtain virtqueue. The end of virtqueue cannot be judged based on whether the array is NULL. Fixes: 4e8169eb0d2d (net/virtio: fix Rx scatter offload) Cc: sta...@dpdk.org Signed-off-by: Zhihong Peng --- drivers/net/virtio/virtio_ethdev.c | 4

[dpdk-dev] [RFC v2] porting AddressSanitizer feature to DPDK

2021-06-15 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [RFC] porting AddressSanitizer feature to DPDK

2021-06-09 Thread zhihongx . peng
From: Zhihong Peng AddressSanitizer (ASan) is a google memory error detect standard tool. It could help to detect use-after-free and {heap,stack,global}-buffer overflow bugs in C/C++ programs, print detailed error information when error happens, large improve debug efficiency. By referring to it

[dpdk-dev] [DPDK v3] net/e1000: add VLAN extend feature to capability

2020-07-20 Thread zhihongx . peng
From: Peng Zhihong The rte_eth_dev_set_vlan_offload function will check vlan rx offload capability, the i350/i210/i211 nics have vlan extend feature but DEV_RX_OFFLOAD_VLAN_EXTEND is not set into the capability, that will cause setting fail. So need to add this capability in igb_get_rx_port_offlo

[dpdk-dev] [DPDK v2] net/i40e: add VLAN filter feature to capability

2020-07-20 Thread zhihongx . peng
From: Peng Zhihong The rte_eth_dev_set_vlan_offload function will check vlan rx offload capability, the i40e vf has vlan filter feature but DEV_RX_OFFLOAD_VLAN_FILTER is not set into the capability, that will cause setting fail. So need to add this capability in i40e_vf_representor_dev_infos_get

[dpdk-dev] [DPDK v2] [DPDK] net/e1000: add the VLAN capabilities of NIC

2020-07-19 Thread zhihongx . peng
From: Peng Zhihong The rte_eth_dev_set_vlan_offload function will check whether the NIC has the set vlan feature. If it has not, it will return failure. So need to add all the vlan feature flags of the NIC. Fixes: ef990fb56e55 ("net/e1000: convert to new Rx offloads API") Cc: sta...@dpdk.org Si

[dpdk-dev] [DPDK] net/i40e: add the VLAN capabilities of NIC

2020-07-19 Thread zhihongx . peng
From: Peng Zhihong The rte_eth_dev_set_vlan_offload function will check whether the NIC has the set vlan feature. If it has not, it will return failure. So need to add all the vlan feature flags of the NIC. Fixes: e0cb96204b71 (net/i40e: add support for representor ports) Cc: declan.dohe...@inte

[dpdk-dev] [DPDK] net/e1000: add the VLAN capabilities of NIC

2020-07-19 Thread zhihongx . peng
From: Peng Zhihong The rte_eth_dev_set_vlan_offload function will check whether the NIC has the set vlan feature. If it has not, it will return failure. So need to add all the vlan feature flags of the NIC. Fixes: ef990fb56e55 ("net/e1000: convert to new Rx offloads API") Cc: wei@intel.com

[dpdk-dev] [PATCH] net/ixgbe: fix status synchronization on BSD

2020-04-16 Thread zhihongx . peng
From: Peng Zhihong DPDK does not implement interrupt mechanism on BSD, so force NIC status synchronization. Fixes: dc66e5fd01b9 (net/ixgbe: improve link state check on VF) Cc: liang-min.w...@intel.com Signed-off-by: Peng Zhihong --- drivers/net/ixgbe/ixgbe_ethdev.c | 5 + 1 file changed,

[dpdk-dev] [DPDK] net/ixgbe: fix status synchronization on BSD

2020-03-26 Thread zhihongx . peng
From: Peng Zhihong DPDK does not implement interrupt mechanism on BSD, so force NIC status synchronization. Fixes: dc66e5fd01b9 (net/ixgbe: improve link state check on VF) Cc: liang-min.w...@intel.com Signed-off-by: Peng Zhihong --- drivers/net/ixgbe/ixgbe_ethdev.c | 5 + 1 file changed,

[dpdk-dev] [DPDK] net/ixgbe: fix status synchronization on BSD

2020-03-25 Thread zhihongx . peng
From: Peng Zhihong DPDK does not implement interrupt mechanism on BSD, so force NIC status synchronization. Fixes: dc66e5fd01b9 (net/ixgbe: improve link state check on VF) Cc: liang-min.w...@intel.com Signed-off-by: Peng Zhihong --- drivers/net/ixgbe/ixgbe_ethdev.c | 5 + 1 file changed,