[dpdk-dev] [PATCH] net/i40e: fix PF notify issue when VF is not up

2017-08-14 Thread Xiaoyun Li
This patch stops PF from sending message to VF when VF's ARQ and ATQ isn't enabled, namely VF isn't up and modifies VF state to active when VF reset is completed. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- d

[dpdk-dev] [PATCH v2] net/i40e: fix PF notify issue when VF is not up

2017-08-15 Thread Xiaoyun Li
This patch stops PF from sending message to VF when VF's admin queue isn't enabled, namely VF isn't up and modifies VF state to active when VF reset is completed. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2:

[dpdk-dev] [PATCH v3] net/i40e: fix PF notify issue when VF is not up

2017-08-15 Thread Xiaoyun Li
This patch stops PF from sending message to VF when VF's admin queue isn't enabled, namely VF isn't up. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v3: * Modify the code to be more concise. * Don't modify vf&

[dpdk-dev] [PATCH 0/3] dynamic linking support

2017-08-24 Thread Xiaoyun Li
This patchset dynamically selects functions at run-time based on CPU flags that current machine supports. This patchset modifies mempcy, memcpy perf test and x86 EFD, using function pointers and bind them at constructor time. Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test

[dpdk-dev] [PATCH 1/3] eal/x86: run-time dispatch over memcpy

2017-08-24 Thread Xiaoyun Li
-by: Xiaoyun Li --- .../common/include/arch/x86/rte_memcpy.h | 305 - mk/machine/native/rte.vars.mk | 2 + 2 files changed, 181 insertions(+), 126 deletions(-) diff --git a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h b/lib/librte_eal

[dpdk-dev] [PATCH 3/3] efd: run-time dispatch over x86 EFD functions

2017-08-24 Thread Xiaoyun Li
This patch dynamically selects x86 EFD functions at run-time. This patch uses function pointer and binds it to the relative function based on CPU flags at constructor time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/rte_efd_x86.h | 35 --- 1 file changed, 32

[dpdk-dev] [PATCH 2/3] app/test: run-time dispatch over memcpy perf test

2017-08-24 Thread Xiaoyun Li
This patch modifies assignment of alignment unit from build-time to run-time based on CPU flags that machine supports. Signed-off-by: Xiaoyun Li --- test/test/test_memcpy_perf.c | 36 +++- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/test/test

[dpdk-dev] [PATCH v2 0/3] dynamic linking support

2017-09-01 Thread Xiaoyun Li
target such as 'haswell'(not 'native') and run on different platforms (equal or above haswell) and can get ISA optimization based on running CPU. Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test: run-time dispatch over memcpy perf test efd: run-time d

[dpdk-dev] [PATCH v2 2/3] app/test: run-time dispatch over memcpy perf test

2017-09-01 Thread Xiaoyun Li
This patch modifies assignment of alignment unit from build-time to run-time based on CPU flags that machine supports. Signed-off-by: Xiaoyun Li --- test/test/test_memcpy_perf.c | 40 +++- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/test

[dpdk-dev] [PATCH v2 1/3] eal/x86: run-time dispatch over memcpy

2017-09-01 Thread Xiaoyun Li
the compiler supports it. Signed-off-by: Xiaoyun Li --- v2 * use gcc function multi-versioning to avoid compilation issue. * add macros for AVX512 and AVX2. Only if users enable AVX512 and the compiler supports it, the AVX512 codes would be compiled. Only if the compiler supports AVX2, the AVX2

[dpdk-dev] [PATCH v2 3/3] efd: run-time dispatch over x86 EFD functions

2017-09-01 Thread Xiaoyun Li
This patch dynamically selects x86 EFD functions at run-time. This patch uses function pointer and binds it to the relative function based on CPU flags at constructor time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/rte_efd_x86.h | 41 ++--- 1 file changed

[dpdk-dev] [PATCH] mk: fix compiling error for atom target

2017-09-07 Thread Xiaoyun Li
e fallback code for x86 non-SSE4") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- mk/machine/atm/rte.vars.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/machine/atm/rte.vars.mk b/mk/machine/atm/rte.vars.mk index cfed110..a6899d9 100644 --- a/mk/machine/atm/rte.vars.mk +++ b

[dpdk-dev] [PATCH] mk: add silvermont to replace atom as a target

2017-09-07 Thread Xiaoyun Li
The -march=atom flag is for older atom CPUs and don't support SSE4 which is the minimum reqiurement for DPDK. And in fact, the current atom CPUs support SSE4. So this patch removes atom as a target for DPDK builds and adds a silvermont replacement instead. Signed-off-by: Xiaoyun Li --

[dpdk-dev] [PATCH v3 0/3] dynamic linking support

2017-09-26 Thread Xiaoyun Li
target such as 'haswell'(not 'native') and run on different platforms (equal or above haswell) and can get ISA optimization based on running CPU. Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test: run-time dispatch over memcpy perf test efd: run-time d

[dpdk-dev] [PATCH v3 2/3] app/test: run-time dispatch over memcpy perf test

2017-09-26 Thread Xiaoyun Li
This patch modifies assignment of alignment unit from build-time to run-time based on CPU flags that machine supports. Signed-off-by: Xiaoyun Li --- test/test/test_memcpy_perf.c | 40 +++- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/test

[dpdk-dev] [PATCH v3 1/3] eal/x86: run-time dispatch over memcpy

2017-09-26 Thread Xiaoyun Li
the compiler supports it. Signed-off-by: Xiaoyun Li --- v2 * Use gcc function multi-versioning to avoid compilation issues. * Add macros for AVX512 and AVX2. Only if users enable AVX512 and the compiler supports it, the AVX512 codes would be compiled. Only if the compiler supports AVX2, the AVX2

[dpdk-dev] [PATCH v3 3/3] efd: run-time dispatch over x86 EFD functions

2017-09-26 Thread Xiaoyun Li
This patch dynamically selects x86 EFD functions at run-time. This patch uses function pointer and binds it to the relative function based on CPU flags at constructor time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/rte_efd_x86.h | 41 ++--- 1 file changed

[dpdk-dev] [PATCH] examples/l3fwd: pass flow arguments when starting l3fwd

2017-09-27 Thread Xiaoyun Li
When the number of free descriptors goes below the LRXQTRESH, an immediate interrupt is triggered. And lots of interrupts cause performance drop. This patch enables to pass flow arguments when starting l3fwd example. Signed-off-by: Xiaoyun Li --- examples/l3fwd/main.c | 191

[dpdk-dev] [PATCH v2] examples/l3fwd: pass flow arguments when start app

2017-09-29 Thread Xiaoyun Li
To make the performance can be tuning on different NICs or platforms. We need to make the number of descriptors and Rx/TX threshold as arguments when starting l3fwd application. Signed-off-by: Xiaoyun Li --- v2 * Modify commit log. * Update the change in guides doc. doc/guides/sample_app_ug

[dpdk-dev] [PATCH v4 0/3] run-time Linking support

2017-10-02 Thread Xiaoyun Li
target such as 'haswell'(not 'native') and run on different platforms (equal or above haswell) and can get ISA optimization based on running CPU. Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test: run-time dispatch over memcpy perf test efd: run-time d

[dpdk-dev] [PATCH v4 1/3] eal/x86: run-time dispatch over memcpy

2017-10-02 Thread Xiaoyun Li
the compiler supports it. Signed-off-by: Xiaoyun Li --- v2 * Use gcc function multi-versioning to avoid compilation issues. * Add macros for AVX512 and AVX2. Only if users enable AVX512 and the compiler supports it, the AVX512 codes would be compiled. Only if the compiler supports AVX2, the AVX2

[dpdk-dev] [PATCH v4 2/3] app/test: run-time dispatch over memcpy perf test

2017-10-02 Thread Xiaoyun Li
This patch modifies assignment of alignment unit from build-time to run-time based on CPU flags that machine supports. Signed-off-by: Xiaoyun Li --- test/test/test_memcpy_perf.c | 40 +++- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/test

[dpdk-dev] [PATCH v4 3/3] efd: run-time dispatch over x86 EFD functions

2017-10-02 Thread Xiaoyun Li
This patch dynamically selects x86 EFD functions at run-time. This patch uses function pointer and binds it to the relative function based on CPU flags at constructor time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/rte_efd_x86.h | 41 ++--- 1 file changed

[dpdk-dev] [PATCH v5 0/3] run-time Linking support

2017-10-03 Thread Xiaoyun Li
target such as 'haswell'(not 'native') and run on different platforms (equal or above haswell) and can get ISA optimization based on running CPU. Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test: run-time dispatch over memcpy perf test efd: run-time d

[dpdk-dev] [PATCH v5 2/3] app/test: run-time dispatch over memcpy perf test

2017-10-03 Thread Xiaoyun Li
This patch modifies assignment of alignment unit from build-time to run-time based on CPU flags that machine supports. Signed-off-by: Xiaoyun Li --- test/test/test_memcpy_perf.c | 40 +++- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/test

[dpdk-dev] [PATCH v5 3/3] efd: run-time dispatch over x86 EFD functions

2017-10-03 Thread Xiaoyun Li
This patch enables x86 EFD file be compiled only if the compiler supports AVX2 since it is already chosen at run-time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/Makefile | 6 +++ lib/librte_efd/rte_efd_x86.c | 87 lib/librte_efd/rte_efd_x86

[dpdk-dev] [PATCH v5 1/3] eal/x86: run-time dispatch over memcpy

2017-10-03 Thread Xiaoyun Li
the compiler supports it. Signed-off-by: Xiaoyun Li --- lib/librte_eal/bsdapp/eal/Makefile | 19 + .../common/include/arch/x86/rte_memcpy.c | 59 ++ .../common/include/arch/x86/rte_memcpy.h | 861 +-- .../common/include/arch/x86

[dpdk-dev] [PATCH v6 1/3] eal/x86: run-time dispatch over memcpy

2017-10-04 Thread Xiaoyun Li
the compiler supports it. Signed-off-by: Xiaoyun Li --- lib/librte_eal/bsdapp/eal/Makefile | 19 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + .../common/include/arch/x86/rte_memcpy.c | 59 ++ .../common/include/arch/x86/rte_memcpy.h | 861

[dpdk-dev] [PATCH v6 0/3] run-time Linking support

2017-10-04 Thread Xiaoyun Li
target such as 'haswell'(not 'native') and run on different platforms (equal or above haswell) and can get ISA optimization based on running CPU. Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test: run-time dispatch over memcpy perf test efd: run-time d

[dpdk-dev] [PATCH v6 2/3] app/test: run-time dispatch over memcpy perf test

2017-10-04 Thread Xiaoyun Li
This patch modifies assignment of alignment unit from build-time to run-time based on CPU flags that machine supports. Signed-off-by: Xiaoyun Li --- test/test/test_memcpy_perf.c | 40 +++- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/test

[dpdk-dev] [PATCH v6 3/3] efd: run-time dispatch over x86 EFD functions

2017-10-04 Thread Xiaoyun Li
This patch enables x86 EFD file be compiled only if the compiler supports AVX2 since it is already chosen at run-time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/Makefile | 6 +++ lib/librte_efd/rte_efd_x86.c | 87 lib/librte_efd/rte_efd_x86

[dpdk-dev] [PATCH v7 0/3] run-time Linking support

2017-10-05 Thread Xiaoyun Li
target such as 'haswell'(not 'native') and run on different platforms (equal or above haswell) and can get ISA optimization based on running CPU. Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test: run-time dispatch over memcpy perf test efd: run-time d

[dpdk-dev] [PATCH v7 1/3] eal/x86: run-time dispatch over memcpy

2017-10-05 Thread Xiaoyun Li
the compiler supports it. Signed-off-by: Xiaoyun Li --- lib/librte_eal/bsdapp/eal/Makefile | 19 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 + .../common/include/arch/x86/rte_memcpy.c | 59 ++ .../common/include/arch/x86/rte_memcpy.h | 861

[dpdk-dev] [PATCH v7 3/3] efd: run-time dispatch over x86 EFD functions

2017-10-05 Thread Xiaoyun Li
This patch enables x86 EFD file be compiled only if the compiler supports AVX2 since it is already chosen at run-time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/Makefile | 6 lib/librte_efd/rte_efd_x86.c | 77 lib/librte_efd/rte_efd_x86

[dpdk-dev] [PATCH v7 2/3] app/test: run-time dispatch over memcpy perf test

2017-10-05 Thread Xiaoyun Li
This patch modifies assignment of alignment unit from build-time to run-time based on CPU flags that machine supports. Signed-off-by: Xiaoyun Li --- test/test/test_memcpy_perf.c | 40 +++- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/test

[dpdk-dev] [PATCH v8 0/3] run-time Linking support

2017-10-13 Thread Xiaoyun Li
target such as 'haswell'(not 'native') and run on different platforms (equal or above haswell) and can get ISA optimization based on running CPU. Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test: run-time dispatch over memcpy perf test efd: run-time d

[dpdk-dev] [PATCH v8 2/3] app/test: run-time dispatch over memcpy perf test

2017-10-13 Thread Xiaoyun Li
This patch modifies assignment of alignment unit from build-time to run-time based on CPU flags that machine supports. Signed-off-by: Xiaoyun Li --- test/test/test_memcpy_perf.c | 50 1 file changed, 37 insertions(+), 13 deletions(-) diff --git a

[dpdk-dev] [PATCH v8 1/3] eal/x86: run-time dispatch over memcpy

2017-10-13 Thread Xiaoyun Li
the compiler supports it. Signed-off-by: Xiaoyun Li --- lib/librte_eal/bsdapp/eal/Makefile | 18 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/common/arch/x86/rte_memcpy.c| 59 ++ lib/librte_eal/common/arch/x86/rte_memcpy_avx2.c | 44

[dpdk-dev] [PATCH v8 3/3] efd: run-time dispatch over x86 EFD functions

2017-10-13 Thread Xiaoyun Li
This patch enables x86 EFD file be compiled only if the compiler supports AVX2 since it is already chosen at run-time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/Makefile | 6 lib/librte_efd/rte_efd_x86.c | 77 lib/librte_efd/rte_efd_x86

[dpdk-dev] [PATCH v3] examples/l3fwd: pass flow arguments when start app

2017-10-18 Thread Xiaoyun Li
To make the performance can be tuning on different NICs or platforms. We need to make the number of descriptors as arguments when starting l3fwd application. Signed-off-by: Xiaoyun Li --- v3 *Delete added Rx/Tx threshold arguments. v2 * Modify commit log. * Update the change in guides doc

[dpdk-dev] [PATCH] net/e1000: fix cannot getting Rx interrupts issue

2017-11-03 Thread Xiaoyun Li
When using VFIO and MSIX interrupt mode, cannot get Rx interrupts. Because the interrupt vectors that are used by VFIO are not enabled. This patch fixes this issue. Fixes: c3cd3de0ab50 ("igb: enable Rx queue interrupts for PF") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- d

[dpdk-dev] [PATCH] eal/x86: revert select optimized memcpy at run-time

2017-11-03 Thread Xiaoyun Li
128-256 bytes packet, it would cause 16%-20% perf drop with mergeble path. When using 256 bytes packet, it would cause 13% perf drop with vector path. So revert that patchset. Signed-off-by: Xiaoyun Li --- lib/librte_eal/bsdapp/eal/Makefile | 18 - lib/librte_eal/common/arch/x86/rte

[dpdk-dev] [PATCH v2] net/e1000: fix cannot getting Rx interrupts issue

2017-11-05 Thread Xiaoyun Li
queue interrupts for PF") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Modify the commit log to be more clear. drivers/net/e1000/igb_ethdev.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/ig

[dpdk-dev] [PATCH] net/i40e: fix VF cannot forward packets issue

2017-11-08 Thread Xiaoyun Li
When Rx interrupt is not enabled, there is no need to check if interrupt allow others. It will cause VF cannot forwarding packets issue. This patch fixes this issue. Fixes: 96a9fd03c25f ("net/i40e: fix Rx queue interrupt mapping in VF") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --

[dpdk-dev] [PATCH] net/i40e: fix VF testpmd startup failure issue

2018-02-01 Thread Xiaoyun Li
") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_ethdev.c| 3 ++- drivers/net/i40e/i40e_ethdev_vf.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 7e3d1a8..403831d 10

[dpdk-dev] [PATCH] net/ixgbe: fix CRC strip enabling

2018-02-07 Thread Xiaoyun Li
New testpmd will get CRC strip offload from rx_offload_capa. Ixgbe card has the capability. This patch adds CRC strip flag into rx_offload_capa in ixgbe and ixgbevf. Fixes: 8b9bd0efe0b6 ("app/testpmd: disable Rx VLAN offloads by default") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH v2] raw/ntb: fix write memory barrier issue

2019-12-15 Thread Xiaoyun Li
All buffers and ring info should be written before tail register update. This patch relocates the write memory barrier before updating tail register to avoid potential issues. Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun

[dpdk-dev] [PATCH] net/i40e: fix TSO pkt exceeds allowed buf size issue

2019-12-22 Thread Xiaoyun Li
poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_rxtx.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 17dc8c78f..8269dc022 10

[dpdk-dev] [PATCH v2] net/i40e: fix TSO pkt exceeds allowed buf size issue

2019-12-25 Thread Xiaoyun Li
poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Each pkt can have several segments so the needed tx descs should sum * all segments up. --- drivers/net/i40e/i40e_rxtx.c | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) di

[dpdk-dev] [PATCH] examples/ntb: fix mempool ops setting issue

2019-12-25 Thread Xiaoyun Li
.@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c index c914256dd..17eedcf0b 100644 --- a/examples/ntb/ntb_fwd.c +++ b/examples/ntb/ntb_fwd.c @@ -19,6 +19,7 @@ #include #include

[dpdk-dev] [PATCH] net/ice: fix TSO pkt exceeds allowed buf size issue

2019-12-25 Thread Xiaoyun Li
pport basic Rx/Tx") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/ice/ice_rxtx.c | 59 ++ 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index b4f5367c5..c3d549ef4 10

[dpdk-dev] [PATCH v3] net/i40e: fix TSO pkt exceeds allowed buf size issue

2019-12-25 Thread Xiaoyun Li
poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v3: * Reused the existing macros to define I40E_MAX_DATA_PER_TXD v2: * Each pkt can have several segments so the needed tx descs should sum * all segments up. --- drivers/net/i40e/i40e_r

[dpdk-dev] [PATCH v2] net/ice: fix TSO pkt exceeds allowed buf size issue

2019-12-25 Thread Xiaoyun Li
pport basic Rx/Tx") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Fixed several typos. --- drivers/net/ice/ice_rxtx.c | 58 ++ 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rx

[dpdk-dev] [PATCH] net/ixgbe/base: update copyright

2020-05-18 Thread Xiaoyun Li
Clarify Intel copyright and update the date to 2020. Fixes: 9db3087f4f77 ("net/ixgbe/base: update the license") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/README| 2 +- drivers/net/ixgbe/base/ixgbe_82598.c | 2 +- drivers/net/ixgbe/base/i

[dpdk-dev] [PATCH] net/i40e/base: update copyright

2020-05-18 Thread Xiaoyun Li
Clarify Intel copyright and update the date to 2020. Fixes: 547be3f01f55 ("net/i40e/base: replace license text with SPDX tag") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/base/README| 2 +- drivers/net/i40e/base/i40e_adminq.c | 2 +- drivers/net

[dpdk-dev] [PATCH] common/iavf: update copyright

2020-05-18 Thread Xiaoyun Li
Clarify Intel copyright and update the date to 2020. Fixes: 317862a4e44f ("net/iavf: replace license text with SPDX tag") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/common/iavf/README| 2 +- drivers/common/iavf/iavf_adminq.c | 2 +- drivers/c

[dpdk-dev] [PATCH] net/ice: update copyright

2020-05-18 Thread Xiaoyun Li
date Boot Configuration Section read of NVM") Fixes: 04b8ec1ea807 ("net/ice/base: add protocol structures and defines") Fixes: 2a27e0a16d29 ("net/ice/base: add sideband queue info") Fixes: 93e84b1bfc92 ("net/ice/base: add basic Tx scheduler") Fixes: c7dd159

[dpdk-dev] [PATCH] net/igc: update copyright

2020-05-18 Thread Xiaoyun Li
Clarify Intel copyright and update the date to 2020. Fixes: 8cb7c57d9b3c ("net/igc: support device initialization") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/igc/base/igc_82571.h | 2 +- drivers/net/igc/base/igc_82575.h | 2 +- drivers/net/igc/base/igc_api

[dpdk-dev] [PATCH] examples/tep_term: fix return value check

2020-02-09 Thread Xiaoyun Li
Added return value check for 'rte_eth_dev_info_get()'. Coverity issue: 349922 Fixes: 2bb43bd4350a ("examples/tep_term: add TSO offload configuration") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/tep_termination/vxlan_setup.c | 4 +++- 1 file changed, 3 inser

[dpdk-dev] [PATCH v2] examples/tep_term: fix return value check

2020-02-09 Thread Xiaoyun Li
Added return value check for 'rte_eth_dev_info_get()'. Coverity issue: 349922 Fixes: 2bb43bd4350a ("examples/tep_term: add TSO offload configuration") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/tep_termination/vxlan_setup.c | 4 +++- 1 file changed, 3 inser

[dpdk-dev] [PATCH v3] examples/tep_term: remove redundant info get

2020-02-16 Thread Xiaoyun Li
Removed redundant function call of 'rte_eth_dev_info_get()' since it has already been called earlier. Coverity issue: 349922 Fixes: 2bb43bd4350a ("examples/tep_term: add TSO offload configuration") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/tep_terminati

[dpdk-dev] [PATCH] raw/ntb: fix write memory barrier issue

2019-12-04 Thread Xiaoyun Li
All buffers and ring info should be written before tail register update. This patch relocates the write memory barrier before updating tail register to avoid potential issues. Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] doc: fix a typo in ntb guide

2019-12-04 Thread Xiaoyun Li
In prerequisites of ntb guide, the correct flag when loading igb_uio module should be `wc_activate=1`, not `wc_active=1`. Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 4 ++-- 1 file

[dpdk-dev] [PATCH] raw/ntb: fix null pointer dereference

2019-08-04 Thread Xiaoyun Li
This patch fixes null pointer dereference issues found by coverity scan. Coverity issue: 344981, 344991, 345000, 345002, 345006, 345024 Fixes: 277310027965 ("raw/ntb: introduce NTB raw device driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/

[dpdk-dev] [PATCH] examples/ntb: fix error handling

2019-08-04 Thread Xiaoyun Li
This patch adds return value checking for fseek function to fix error handling issue found by coverity scan. Coverity issue: 344996 Fixes: c5eebf85badc ("examples/ntb: add example for NTB") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 13 +++

[dpdk-dev] [PATCH v2] examples/ntb: fix error handling

2019-08-04 Thread Xiaoyun Li
This patch adds return value checking for fseek function to fix error handling issue found by coverity scan. Coverity issue: 344996 Fixes: c5eebf85badc ("examples/ntb: add example for NTB") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 10 -- 1 fi

[dpdk-dev] [PATCH] examples/ntb: fix resource leaks

2019-08-13 Thread Xiaoyun Li
Resource file was not freed or pointed-to in fseek/ftell. This patch fixed this issue which is found by coverity scan. Coverity issue: 347277 Fixes: 440af660ff83 ("examples/ntb: fix error handling") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 2 ++ 1 fi

[dpdk-dev] [PATCH] examples/ntb: fix no return check

2019-10-25 Thread Xiaoyun Li
This patch adds return value checking and error handling for rte_rawdev_en/dequeue_buffers() and rte_eth_link_get(). Coverity issue: 350247, 350250, 350251, 350252, 350253, 350254 Fixes: 5194299d6ef5 ("examples/ntb: support more functions") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH v6 2/6] raw/ntb: add intel ntb support

2019-06-17 Thread Xiaoyun Li
Add in the list of registers for the device. And enable ntb device ops for intel skylake platform. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/Makefile | 1 + drivers/raw/ntb_rawdev/meson.build| 3 +- drivers/raw/ntb_rawdev/ntb_hw_intel.c | 368

[dpdk-dev] [PATCH v6 1/6] raw/ntb: introduce ntb rawdev driver

2019-06-17 Thread Xiaoyun Li
Introduce rawdev driver support for NTB (Non-transparent Bridge) which can help to connect two separate hosts with each other. Signed-off-by: Xiaoyun Li --- config/common_base| 5 + drivers/raw/Makefile | 1 + drivers/raw/meson.build

[dpdk-dev] [PATCH v6 0/6] rawdev driver for ntb

2019-06-17 Thread Xiaoyun Li
docs. Xiaoyun Li (6): raw/ntb: introduce ntb rawdev driver raw/ntb: add intel ntb support raw/ntb: add handshake process examples/ntb: enable an example for ntb usertools/dpdk-devbind.py: add support for ntb doc: update docs for ntb driver MAINTAINERS

[dpdk-dev] [PATCH v6 4/6] examples/ntb: enable an example for ntb

2019-06-17 Thread Xiaoyun Li
e functions and only support transmitting file no more than 4M. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/ntb_rawdev.c | 28 ++- examples/Makefile | 1 + examples/meson.build| 2 +- examples/ntb/Makefile | 68 + exam

[dpdk-dev] [PATCH v6 6/6] doc: update docs for ntb driver

2019-06-17 Thread Xiaoyun Li
Update related documents for ntb pmd and example. Signed-off-by: Xiaoyun Li --- MAINTAINERS| 8 + doc/guides/rawdevs/index.rst | 1 + doc/guides/rawdevs/ntb_rawdev.rst | 41 ++ doc/guides/rel_notes/release_19_08.rst | 15

[dpdk-dev] [PATCH v6 5/6] usertools/dpdk-devbind.py: add support for ntb

2019-06-17 Thread Xiaoyun Li
In order to allow binding/unbinding of devices for use by the ntb_rawdev, we need to update the devbind script to add a new class of device, and add device ids for the specific HW instances. And only support skx platform right now. Signed-off-by: Xiaoyun Li --- usertools/dpdk-devbind.py | 9

[dpdk-dev] [PATCH v6 3/6] raw/ntb: add handshake process

2019-06-17 Thread Xiaoyun Li
Add handshake process using doorbell so that two hosts can communicate to start and stop. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/ntb_rawdev.c | 336 +++- 1 file changed, 335 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ntb_rawdev/ntb_rawdev.c b

[dpdk-dev] [PATCH v7 1/6] raw/ntb: introduce ntb rawdev driver

2019-06-20 Thread Xiaoyun Li
Introduce rawdev driver support for NTB (Non-transparent Bridge) which can help to connect two separate hosts with each other. Signed-off-by: Xiaoyun Li --- config/common_base| 5 + drivers/raw/Makefile | 1 + drivers/raw/meson.build

[dpdk-dev] [PATCH v7 0/6] rawdev driver for ntb

2019-06-20 Thread Xiaoyun Li
crashed while debugging. * Updated docs especailly about how to setup BIOS for skylake. * Fixed not return issue and not free issue in example. * Renamed ntb_devices to communication_devices to be more generic in usertools. * Polish the codes and docs. Xiaoyun Li (6): raw/ntb: introduce ntb

[dpdk-dev] [PATCH v7 2/6] raw/ntb: add intel ntb support

2019-06-20 Thread Xiaoyun Li
Add in the list of registers for the device. And enable ntb device ops for intel skylake platform. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/Makefile | 1 + drivers/raw/ntb_rawdev/meson.build| 3 +- drivers/raw/ntb_rawdev/ntb_hw_intel.c | 369

[dpdk-dev] [PATCH v7 3/6] raw/ntb: add handshake process

2019-06-20 Thread Xiaoyun Li
Add handshake process using doorbell so that two hosts can communicate to start and stop. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/ntb_rawdev.c | 336 +++- 1 file changed, 335 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ntb_rawdev/ntb_rawdev.c b

[dpdk-dev] [PATCH v7 4/6] examples/ntb: enable an example for ntb

2019-06-20 Thread Xiaoyun Li
e functions and only support transmitting file no more than 4M. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/ntb_rawdev.c | 28 ++- examples/Makefile | 1 + examples/meson.build| 2 +- examples/ntb/Makefile | 68 + exam

[dpdk-dev] [PATCH v7 5/6] usertools/dpdk-devbind.py: add support for ntb

2019-06-20 Thread Xiaoyun Li
In order to allow binding/unbinding of devices for use by the ntb_rawdev, we need to update the devbind script to add a new class of device, and add device ids for the specific HW instances. And only support skx platform right now. Signed-off-by: Xiaoyun Li --- usertools/dpdk-devbind.py | 9

[dpdk-dev] [PATCH v7 6/6] doc: update docs for ntb driver

2019-06-20 Thread Xiaoyun Li
Update related documents for ntb pmd and example. Signed-off-by: Xiaoyun Li --- MAINTAINERS| 8 + doc/guides/rawdevs/index.rst | 1 + doc/guides/rawdevs/ntb_rawdev.rst | 41 ++ doc/guides/rel_notes/release_19_08.rst | 15

[dpdk-dev] [PATCH v8 0/6] rawdev driver for ntb

2019-06-26 Thread Xiaoyun Li
usertools. * Polish the codes and docs. Xiaoyun Li (6): raw/ntb: introduce ntb rawdev driver raw/ntb: add intel ntb support raw/ntb: add handshake process examples/ntb: enable an example for ntb usertools/dpdk-devbind.py: add support for ntb doc: update docs for ntb driver MAINTAINERS

[dpdk-dev] [PATCH v8 1/6] raw/ntb: introduce ntb rawdev driver

2019-06-26 Thread Xiaoyun Li
Introduce rawdev driver support for NTB (Non-transparent Bridge) which can help to connect two separate hosts with each other. Signed-off-by: Xiaoyun Li --- config/common_base| 5 + drivers/raw/Makefile | 1 + drivers/raw/meson.build

[dpdk-dev] [PATCH v8 2/6] raw/ntb: add intel ntb support

2019-06-26 Thread Xiaoyun Li
Add in the list of registers for the device. And enable ntb device ops for intel skylake platform. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/Makefile | 1 + drivers/raw/ntb_rawdev/meson.build| 3 +- drivers/raw/ntb_rawdev/ntb_hw_intel.c | 368

[dpdk-dev] [PATCH v8 3/6] raw/ntb: add handshake process

2019-06-26 Thread Xiaoyun Li
Add handshake process using doorbell so that two hosts can communicate to start and stop. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/ntb_rawdev.c | 336 +++- 1 file changed, 335 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ntb_rawdev/ntb_rawdev.c b

[dpdk-dev] [PATCH v8 6/6] doc: update docs for ntb driver

2019-06-26 Thread Xiaoyun Li
Update related documents for ntb pmd and example. Signed-off-by: Xiaoyun Li --- MAINTAINERS| 9 + doc/guides/rawdevs/index.rst | 1 + doc/guides/rawdevs/ntb_rawdev.rst | 41 ++ doc/guides/rel_notes/release_19_08.rst | 15

[dpdk-dev] [PATCH v8 4/6] examples/ntb: enable an example for ntb

2019-06-26 Thread Xiaoyun Li
e functions and only support transmitting file no more than 4M. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/ntb_rawdev.c | 28 ++- examples/Makefile | 1 + examples/meson.build| 2 +- examples/ntb/Makefile | 68 + exam

[dpdk-dev] [PATCH v8 5/6] usertools/dpdk-devbind.py: add support for ntb

2019-06-26 Thread Xiaoyun Li
In order to allow binding/unbinding of devices for use by the ntb_rawdev, we need to update the devbind script to add a new class of device, and add device ids for the specific HW instances. And only support skx platform right now. Signed-off-by: Xiaoyun Li --- usertools/dpdk-devbind.py | 9

[dpdk-dev] [PATCH v9 1/6] raw/ntb: introduce ntb rawdev driver

2019-06-27 Thread Xiaoyun Li
Introduce rawdev driver support for NTB (Non-transparent Bridge) which can help to connect two separate hosts with each other. Signed-off-by: Xiaoyun Li --- config/common_base| 5 + drivers/raw/Makefile | 1 + drivers/raw/meson.build

[dpdk-dev] [PATCH v9 0/6] rawdev driver for ntb

2019-06-27 Thread Xiaoyun Li
ntb_devices to communication_devices to be more generic in usertools. * Polish the codes and docs. Xiaoyun Li (6): raw/ntb: introduce ntb rawdev driver raw/ntb: add intel ntb support raw/ntb: add handshake process examples/ntb: enable an example for ntb usertools/dpdk-devbind.py: add support

[dpdk-dev] [PATCH v9 3/6] raw/ntb: add handshake process

2019-06-27 Thread Xiaoyun Li
Add handshake process using doorbell so that two hosts can communicate to start and stop. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/ntb_rawdev.c | 336 +++- 1 file changed, 335 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ntb_rawdev/ntb_rawdev.c b

[dpdk-dev] [PATCH v9 2/6] raw/ntb: add intel ntb support

2019-06-27 Thread Xiaoyun Li
Add in the list of registers for the device. And enable ntb device ops for intel skylake platform. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/Makefile | 1 + drivers/raw/ntb_rawdev/meson.build| 3 +- drivers/raw/ntb_rawdev/ntb_hw_intel.c | 369

[dpdk-dev] [PATCH v9 4/6] examples/ntb: enable an example for ntb

2019-06-27 Thread Xiaoyun Li
e functions and only support transmitting file no more than 4M. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb_rawdev/ntb_rawdev.c | 28 ++- examples/Makefile | 1 + examples/meson.build| 2 +- examples/ntb/Makefile | 68 + exam

[dpdk-dev] [PATCH v9 5/6] usertools/dpdk-devbind.py: add support for ntb

2019-06-27 Thread Xiaoyun Li
In order to allow binding/unbinding of devices for use by the ntb_rawdev, we need to update the devbind script to add a new class of device, and add device ids for the specific HW instances. And only support skx platform right now. Signed-off-by: Xiaoyun Li --- usertools/dpdk-devbind.py | 9

[dpdk-dev] [PATCH v9 6/6] doc: update docs for ntb driver

2019-06-27 Thread Xiaoyun Li
Update related documents for ntb pmd and example. Signed-off-by: Xiaoyun Li --- MAINTAINERS| 9 + doc/guides/rawdevs/index.rst | 1 + doc/guides/rawdevs/ntb_rawdev.rst | 41 ++ doc/guides/rel_notes/release_19_08.rst | 15

[dpdk-dev] [PATCH v10 1/5] raw/ntb: introduce ntb rawdev driver

2019-07-01 Thread Xiaoyun Li
Introduce rawdev driver support for NTB (Non-transparent Bridge) which can help to connect two separate hosts with each other. Signed-off-by: Xiaoyun Li --- MAINTAINERS | 5 + config/common_base| 5 + doc/guides/rawdevs/index.rst

[dpdk-dev] [PATCH v10 0/5] rawdev driver for ntb

2019-07-01 Thread Xiaoyun Li
about how to setup BIOS for skylake. * Fixed not return issue and not free issue in example. * Renamed ntb_devices to communication_devices to be more generic in usertools. * Polish the codes and docs. Xiaoyun Li (5): raw/ntb: introduce ntb rawdev driver usertools/dpdk-devbind.py: add support

[dpdk-dev] [PATCH v10 2/5] usertools/dpdk-devbind.py: add support for ntb

2019-07-01 Thread Xiaoyun Li
In order to allow binding/unbinding of devices for use by the ntb_rawdev, we need to update the devbind script to add a new class of device, and add device ids for the specific HW instances. And only support Intel Skylake platform right now. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs

[dpdk-dev] [PATCH v10 5/5] examples/ntb: enable an example for ntb

2019-07-01 Thread Xiaoyun Li
e functions and only support transmitting file no more than 4M. Signed-off-by: Xiaoyun Li --- MAINTAINERS | 4 + doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/ntb.rst| 47 drivers/raw/ntb_rawdev/ntb_rawdev.c | 28 ++

<    1   2   3   >