[dpdk-dev] [PATCH V3 00/14] Features and bugfixes for hns3

2021-03-03 Thread Lijun Ou
This series add three features according to the 21.05 roadmap as well as fix some bugs. v2->v3: - fix some patchs title. - delete the macro with patch[4/14]. v1->v2: - fix the commit log for patch[8/14]. - add more commit log information for patch[13/14]. - add a fix patch[7/14] because the versi

[dpdk-dev] [PATCH V3 10/14] net/hns3: fix HW buffer size on MTU update

2021-03-03 Thread Lijun Ou
t;net/hns3: add initialization") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- V2->V3: - rewrite the patch title --- drivers/net/hns3/hns3_ethdev.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/n

[dpdk-dev] [PATCH V3 11/14] net/hns3: remove unused parameter from func declaration

2021-03-03 Thread Lijun Ou
From: Huisong Li All input parameters in the "hns3_dev_xstats_get_by_id" API are used, so the rte_unused flag of some variables should be deleted. Fixes: 3213d584b698 ("net/hns3: fix xstats with id and names") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Li

[dpdk-dev] [PATCH V3 13/14] net/hns3: add process for MAC interrupt

2021-03-03 Thread Lijun Ou
status when the interrupt is received, then clear the MAC interrupt status. Because this interrupt uses the same interrupt as RAS, the interrupt log is adjusted. Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- V1->V2: - add more information for commit log --- drivers/net/hns3/hns3_cm

[dpdk-dev] [PATCH V3 14/14] net/hns3: fix imprecise statistics

2021-03-03 Thread Lijun Ou
directly read from the bar instead of the firmware, and all the statistics of a queue include HW and SW are read at a time to reduce inconsistency. Fixes: 8839c5e202f3 ("net/hns3: support device stats") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- d

[dpdk-dev] [PATCH V3 01/14] net/hns3: support module EEPROM dump

2021-03-03 Thread Lijun Ou
From: Chengchang Tang This patch add support for dumping module EEPROM. Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- V2->V3: - add "Module EEPROM dump" feature to hns3.ini and hns3_vf.ini - fix the release notes location with Hisilicon hns3 --- doc/guides/nics/feat

[dpdk-dev] [PATCH V3 07/14] net/hns3: fix device capabilities for copper media type

2021-03-03 Thread Lijun Ou
From: Huisong Li The configuration operation for PHY is implemented by firmware. And a capability flag will be report to driver, which means the firmware supports the PHY driver. However, the current implementation only supports obtaining the capability bit, but some basic functions of copper po

[dpdk-dev] [PATCH V3 03/14] net/hns3: implement Tx mbuf free on demand

2021-03-03 Thread Lijun Ou
From: Chengwen Feng This patch add support tx_done_cleanup ops, which could support for the API rte_eth_tx_done_cleanup to free consumed mbufs on Tx ring. Signed-off-by: Chengwen Feng Signed-off-by: Lijun Ou --- V2->V3: - rewrite the patch title according to Ferruh Yigit's advice

[dpdk-dev] [PATCH V3 02/14] net/hns3: add more registers to dump

2021-03-03 Thread Lijun Ou
From: Chengchang Tang This patch makes more registers dumped in the dump_reg API to help loacte the fault. Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_cmd.h | 13 drivers/net/hns3/hns3_regs.c | 171 ++- 2

[dpdk-dev] [PATCH V3 06/14] net/hns3: encapsulate a port shaping interface

2021-03-03 Thread Lijun Ou
From: Huisong Li When rate of port changes, the rate limit of the port needs to be updated. So it is necessary to encapsulate an interface that configures the rate limit based on the rate. Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_dcb.c| 22

[dpdk-dev] [PATCH V3 05/14] net/hns3: add imissed packet stats

2021-03-03 Thread Lijun Ou
From: "Min Hu (Connor)" This patch implement Rx imissed stats by querying cmdq. Signed-off-by: Min Hu (Connor) Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_cmd.h| 7 +++ drivers/net/hns3/hns3_ethdev.c | 7 +++ drivers/net/hns3/hns3_ethdev.h | 1 + drivers/net/hns3/hn

[dpdk-dev] [PATCH V3 08/14] net/hns3: support PF device with copper phys

2021-03-03 Thread Lijun Ou
existing basic features for PF device with copper phys. Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- V1->V2: - rewrite commit log --- doc/guides/rel_notes/release_21_05.rst | 1 + drivers/net/hns3/hns3_cmd.c| 8 +-- drivers/net/hns3/hns3_cmd.h|

[dpdk-dev] [PATCH V3 09/14] net/hns3: support RXD advanced layout

2021-03-03 Thread Lijun Ou
orted. Signed-off-by: Chengwen Feng Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_cmd.c | 8 +- drivers/net/hns3/hns3_cmd.h | 5 + drivers/net/hns3/hns3_ethdev.c| 2 + drivers/net/hns3/hns3_ethdev.h| 16 +++ drivers/net/hns3/hns3_ethdev_vf.c | 2 + drivers/net

[dpdk-dev] [PATCH V3 12/14] net/hns3: fix memory leakage for mbuf

2021-03-03 Thread Lijun Ou
From: Huisong Li The mbufs of rx queue will be allocated in "hns3_do_start" function. But these mbufs are not released when "hns3_dev_start" executes failed. Fixes: c4ae39b2cfc5 ("net/hns3: fix Rx interrupt after reset") Cc: sta...@dpdk.org Signed-off-by: Huiso

[dpdk-dev] [PATCH V3 04/14] net/hns3: add Rx and Tx bytes stats

2021-03-03 Thread Lijun Ou
From: "Min Hu (Connor)" In current HNS3 PMD, Rx/Tx bytes from packet stats are not implemented. This patch implemented Rx/Tx bytes using soft counters. Signed-off-by: Min Hu (Connor) Signed-off-by: Lijun Ou --- V2->V3: - remote the macro RTE_LIBRTE_HNS3_PMD_SOFT_COUNTER - upda

[dpdk-dev] [PATCH 0/3] testpmd updates

2021-03-04 Thread Lijun Ou
This series add a API implementation for testpmd as well as fix two bugs. Chengwen Feng (1): app/testpmd: support Tx mbuf free on demand cmd Hongbo Zheng (1): app/testpmd: fix mixed use of RX/Rx/TX/Tx in testpmd Huisong Li (1): app/testpmd: remove forwarding config from parsing Rx and Tx

[dpdk-dev] [PATCH 3/3] app/testpmd: fix mixed use of RX/Rx/TX/Tx in testpmd

2021-03-04 Thread Lijun Ou
wthresh=0 13: TX offloads=0x1 - TX RS bit threshold=32 In line 4, RX/Tx is mixed used. Also in other lines, RX/Rx/TX/Tx is mixed used. This patch fix the mixed use of RX/Rx/TX/Tx in testpmd command "show config rxtx" output by change to unified use Rx/Tx. Signed-off-by: Hongbo Zhen

[dpdk-dev] [PATCH 2/3] app/testpmd: remove forwarding config from parsing Rx and Tx

2021-03-04 Thread Lijun Ou
pointer may be accessed. Like: set nbcore 4 port stop all port config 0 dcb vt off 4 pfc on port start all port stop all port config all rxq 8 port config all txq 8 At the moment, a segmentation fault occurs. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta.

[dpdk-dev] [PATCH 1/3] app/testpmd: support Tx mbuf free on demand cmd

2021-03-04 Thread Lijun Ou
: Chengwen Feng Signed-off-by: Lijun Ou --- app/test-pmd/cmdline.c | 91 + doc/guides/rel_notes/release_21_05.rst | 2 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 3 files changed, 100 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH] app/testpmd: support multi-process

2021-03-04 Thread Lijun Ou
-procs=2 --proc-id=1 Signed-off-by: Min Hu (Connor) Signed-off-by: Lijun Ou --- app/test-pmd/cmdline.c| 12 +++- app/test-pmd/config.c | 9 ++- app/test-pmd/parameters.c | 11 app/test-pmd/testpmd.c| 138 ++ app/test-pmd/testpmd.h

[dpdk-dev] [PATCH] app/testpmd: support Tx mbuf free on demand cmd

2021-03-04 Thread Lijun Ou
: Chengwen Feng Signed-off-by: Lijun Ou --- app/test-pmd/cmdline.c | 91 + doc/guides/rel_notes/release_21_05.rst | 2 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 3 files changed, 100 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH V2] app/testpmd: support Tx mbuf free on demand cmd

2021-03-05 Thread Lijun Ou
: Chengwen Feng Signed-off-by: Lijun Ou --- V1->V2: - use Tx instead of TX - add note in doc --- app/test-pmd/cmdline.c | 91 + doc/guides/rel_notes/release_21_05.rst | 2 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 11 3 files changed,

[dpdk-dev] [PATCH 0/3] Fixes for testpmd

2021-03-05 Thread Lijun Ou
This series add two test bug fixes and a print style. Hongbo Zheng (1): app/testpmd: use of Rx/Tx in testpmd Huisong Li (2): app/testpmd: fix forwarding configuration when DCB test app/testpmd: remove forwarding config from parsing Rx and Tx app/test-pmd/cmdline.c | 106 ++

[dpdk-dev] [PATCH 1/3] app/testpmd: fix forwarding configuration when DCB test

2021-03-05 Thread Lijun Ou
quot;start_port" function, dcb_test is set to 1 based on dcb_config. So it also should be cleared when dcb_config is 0. Fixes: 900550de04a7 ("app/testpmd: add dcb support") Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: H

[dpdk-dev] [PATCH 2/3] app/testpmd: remove forwarding config from parsing Rx and Tx

2021-03-05 Thread Lijun Ou
c: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- V1->V2: - use stream instead of flow --- app/test-pmd/cmdline.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 4df0c32..e316f5c 100644 --- a/app/tes

[dpdk-dev] [PATCH 3/3] app/testpmd: use of Rx/Tx in testpmd

2021-03-05 Thread Lijun Ou
wthresh=0 13: TX offloads=0x1 - TX RS bit threshold=32 We can see RX/Rx/TX/Tx is mixed used. Also in other places in testpmd, RX/Rx/TX/Tx is mixed used. This patch fix the mixed use of RX/Rx/TX/Tx in testpmd by change to unified use Rx/Tx. Signed-off-by: Hongbo Zheng Signed-off-by: Lijun O

[dpdk-dev] [PATCH V2 2/4] config/arm: add Hisilicon kunpeng930 implementer

2021-03-09 Thread Lijun Ou
Here add Hisilicon kunpeng930 config back which was deleted. Fixes: 91c730fd4e09 ("config/arm: remove unused or superfluous variables") Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- -rewrite the patch title. -split the patch into two. --- config/arm/meson.build | 7

[dpdk-dev] [PATCH V2 4/4] config/arm: add kunpeng930 meson cross compile target

2021-03-09 Thread Lijun Ou
Here add arm64 cross compile support for Hisilicon kunpeng930. Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- config/arm/arm64_kunpeng930_linux_gcc | 19 +++ doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 1 + 2 files changed, 20 insertions

[dpdk-dev] [PATCH V2 1/4] config/arm: add Hisilicon kunpeng920 implementer

2021-03-09 Thread Lijun Ou
Here addes Kunpeng920 config back which was deleted. Fixes: 91c730fd4e09 ("config/arm: remove unused or superfluous variables") Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- V1->V2: - rewrite patch title. - split the patch into two. --- config/arm/mes

[dpdk-dev] [PATCH V2 3/4] config/arm: add kunpeng920 meson cross compile target

2021-03-09 Thread Lijun Ou
Here add arm64 cross compile support for Hisilicon kunpeng920. Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- config/arm/arm64_kunpeng920_linux_gcc | 19 +++ doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 4 2 files changed, 23 insertions

[dpdk-dev] [PATCH V2 0/4] add Hisilicon kunpeng CPU support

2021-03-09 Thread Lijun Ou
This series add meson build for Hisilicon kunpeng CPU. Lijun Ou (4): config/arm: add Hisilicon kunpeng920 implementer config/arm: add Hisilicon kunpeng930 implementer config/arm: add kunpeng920 meson cross compile target config/arm: add kunpeng930 meson cross compile target config/arm

[dpdk-dev] [PATCH] ethdev: add queue state when retrieve queue information

2021-03-18 Thread Lijun Ou
ns 64B, so it could be ABI compatible. Signed-off-by: Chengwen Feng Signed-off-by: Lijun Ou --- doc/guides/rel_notes/release_21_05.rst | 6 ++ lib/librte_ethdev/rte_ethdev.c | 3 +++ lib/librte_ethdev/rte_ethdev.h | 4 3 files changed, 13 insertions(+) diff --

[dpdk-dev] [PATCH V2] ethdev: add queue state when retrieve queue information

2021-03-25 Thread Lijun Ou
ns 64B, so it could be ABI compatible. Signed-off-by: Chengwen Feng Signed-off-by: Lijun Ou --- V1->V2: - move queue state defines to public file --- doc/guides/rel_notes/release_21_05.rst | 6 ++ lib/librte_ethdev/ethdev_driver.h | 7 --- lib/librte_ethdev/rte_ethdev.c

[dpdk-dev] [PATCH V3 1/3] config/arm: add Hisilicon kunpeng implementer

2021-03-26 Thread Lijun Ou
Here adds configs for Kunpeng server. Fixes: 91c730fd4e09 ("config/arm: remove unused or superfluous variables") Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou Acked-by: Jerin Jacob Reviewed-by: Ruifeng Wang --- V2->V3: - refined the commit - merge [1/4] and [2/4] into

[dpdk-dev] [PATCH V3 2/3] config/arm: add kunpeng920 cross target

2021-03-26 Thread Lijun Ou
Add support for Hisilicon kunpeng920 cross target. Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou Acked-by: Jerin Jacob Reviewed-by: Ruifeng Wang --- V2->V3: - rewrite title - rewrite commit log - add Acked-by and Reviewed-by --- config/arm/arm64_kunpeng920_linux_

[dpdk-dev] [PATCH V3 0/3] add Hisilicon kunpeng CPU support

2021-03-26 Thread Lijun Ou
This series add meson build for Hisilicon kunpeng CPU. v2->v3: 1. merge [1/4] and [2/4] patch into one 2. rewrite some titles 3. rewrite commit logs for [2/3] [3/3] 4. add Acked-by and Reviewed-by v1->v2: 1. split [1/2] into two. Lijun Ou (3): config/arm: add Hisilicon kunpeng imple

[dpdk-dev] [PATCH V3 3/3] config/arm: add kunpeng930 cross target

2021-03-26 Thread Lijun Ou
Add support for Hisilicon kunpeng930 cross target. Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou Acked-by: Jerin Jacob Reviewed-by: Ruifeng Wang --- V2->V3: - rewrite title - rewrite commit log - add Acked-by and Reviewed-by --- config/arm/arm64_kunpeng930_linux_

[dpdk-dev] [PATCH 8/8] net/hns3: fix meson build for enabling SVE Rx/Tx

2020-10-29 Thread Lijun Ou
The ARM SVE vector inplementaion defined macro is __ARM_FEATURE_SVE and RTE_MACHINE_CPUFLAG macros have replaced by regular compiler macros. Besides, we remove the unused macro RTE_LIBRTE_HNS3_INC_VECTOR_SVE. Fixes: 952ebacce4f2 ("net/hns3: support SVE Rx") Signed-off-by: Lijun Ou --

[dpdk-dev] [PATCH 4/8] net/hns3: fix uncheck return value warning

2020-10-29 Thread Lijun Ou
ror message if it is handled incorrectly, so it is not necessary to check hns3_reset_all_tqps return value, here keep ret as the error code causing the exception. Coverity issue: 363048 Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: sta...@dpdk.org Signed-off-by: Hong

[dpdk-dev] [PATCH 0/8] hns3 misc updates

2020-10-29 Thread Lijun Ou
setting VF bus master Huisong Li (2): net/hns3: fix RSS max queue id allowed in multi-TC case net/hns3: fix data type to release fake queue > 255 Lijun Ou (2): net/hns3: add queue count of Rx API support net/hns3: fix meson build for enabling SVE Rx/Tx drivers/net/hns3/hns3_ethde

[dpdk-dev] [PATCH 1/8] net/hns3: add queue count of Rx API support

2020-10-29 Thread Lijun Ou
FBDs with the number of BDs to be written back to the hardware. the number of used descriptors of a rx queue is computed as follows: The fbd numbers of reading from FBD register plus the bd numbers to be wrriten back to hardware maintainer by the driver. Signed-off-by: Lijun Ou --- drivers/net/hns3

[dpdk-dev] [PATCH 7/8] net/hns3: fix return value check of setting VF bus master

2020-10-29 Thread Lijun Ou
;) Cc: sta...@dpdk.org Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index 9fb7941..05a9341 100644 --- a/driver

[dpdk-dev] [PATCH 2/8] net/hns3: fix RSS max queue id allowed in multi-TC case

2020-10-29 Thread Lijun Ou
id configured in the redirection table must be within the range of the number of queues allocated to a TC. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_f

[dpdk-dev] [PATCH 5/8] net/hns3: fix data type to release fake queue > 255

2020-10-29 Thread Lijun Ou
: a951c1ed3ab5 ("net/hns3: support different numbers of Rx and Tx queues") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_rxtx.c b/driver

[dpdk-dev] [PATCH 3/8] net/hns3: fix packect type report in Rx

2020-10-29 Thread Lijun Ou
lated operations") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.h | 5 ++- drivers/net/hns3/hns3_rxtx.c | 99 ++ drivers/net/hns3/hns3_rxtx.h | 13 +++--- 3 files changed, 82 inserti

[dpdk-dev] [PATCH 6/8] net/hns3: fix HW ring not clear after queue stop

2020-10-29 Thread Lijun Ou
released. This patch fix this by reset the sw ring after disable the queue. Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 16 1 file changed, 16

[dpdk-dev] [PATCH v2 0/8] hns3 misc updates

2020-10-29 Thread Lijun Ou
warning net/hns3: fix return value check of setting VF bus Huisong Li (2): net/hns3: fix RSS max queue id allowed in multi-TC case net/hns3: fix data type to release fake queue > 255 Lijun Ou (2): net/hns3: enable RSS for ipv6-sctp dst/src port fields net/hns3: add queue count of Rx

[dpdk-dev] [PATCH v2 8/8] net/hns3: fix return value check of setting VF bus

2020-10-29 Thread Lijun Ou
ned-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- V1->V2: -fix checkpatch warning --- drivers/net/hns3/hns3_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index 9fb7941..05a9341 100644 ---

[dpdk-dev] [PATCH v2 6/8] net/hns3: fix data type to release fake queue > 255

2020-10-29 Thread Lijun Ou
: a951c1ed3ab5 ("net/hns3: support different numbers of Rx and Tx queues") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_rxtx.c b/driver

[dpdk-dev] [PATCH v2 5/8] net/hns3: fix uncheck return value warning

2020-10-29 Thread Lijun Ou
ror message if it is handled incorrectly, so it is not necessary to check hns3_reset_all_tqps return value, here keep ret as the error code causing the exception. Coverity issue: 363048 Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: sta...@dpdk.org Signed-off-by: Hong

[dpdk-dev] [PATCH v2 4/8] net/hns3: fix packect type report in Rx

2020-10-29 Thread Lijun Ou
lated operations") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.h | 5 ++- drivers/net/hns3/hns3_rxtx.c | 99 ++ drivers/net/hns3/hns3_rxtx.h | 13 +++--- 3 files changed, 82 inserti

[dpdk-dev] [PATCH v2 7/8] net/hns3: fix HW ring not clear after queue stop

2020-10-29 Thread Lijun Ou
released. This patch fix this by reset the sw ring after disable the queue. Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 16 1 file changed, 16

[dpdk-dev] [PATCH v2 1/8] net/hns3: enable RSS for ipv6-sctp dst/src port fields

2020-10-29 Thread Lijun Ou
For Kunpeng930 NIC hardware, it supports to use dst/src port to RSS hash for ipv6-sctp packet type. However, the Kunpeng920 NIC hardware is different with it. The Kunpeng920 NIC only supports dst/src ip to RSS hash for ipv6-sctp packet type. Signed-off-by: Lijun Ou --- drivers/net/hns3

[dpdk-dev] [PATCH v2 3/8] net/hns3: fix RSS max queue id allowed in multi-TC case

2020-10-29 Thread Lijun Ou
id configured in the redirection table must be within the range of the number of queues allocated to a TC. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_f

[dpdk-dev] [PATCH v2 2/8] net/hns3: add queue count of Rx API support

2020-10-29 Thread Lijun Ou
FBDs with the number of BDs to be written back to the hardware. the number of used descriptors of a rx queue is computed as follows: The fbd numbers of reading from FBD register plus the bd numbers to be wrriten back to hardware maintainer by the driver. Signed-off-by: Lijun Ou --- V1->V2: - fix

[dpdk-dev] [PATCH v2 4/8] net/hns3: fix packect type report in Rx

2020-10-29 Thread Lijun Ou
lated operations") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.h | 5 ++- drivers/net/hns3/hns3_rxtx.c | 99 ++ drivers/net/hns3/hns3_rxtx.h | 13 +++--- 3 files changed, 82 inserti

[dpdk-dev] [PATCH v2 6/8] net/hns3: fix data type to release fake queue > 255

2020-10-29 Thread Lijun Ou
: a951c1ed3ab5 ("net/hns3: support different numbers of Rx and Tx queues") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_rxtx.c b/driver

[dpdk-dev] [PATCH v2 5/8] net/hns3: fix uncheck return value warning

2020-10-29 Thread Lijun Ou
ror message if it is handled incorrectly, so it is not necessary to check hns3_reset_all_tqps return value, here keep ret as the error code causing the exception. Coverity issue: 363048 Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: sta...@dpdk.org Signed-off-by: Hong

[dpdk-dev] [PATCH v2 8/8] net/hns3: fix return value check of setting VF bus

2020-10-29 Thread Lijun Ou
ned-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- V1->V2: -fix checkpatch warning --- drivers/net/hns3/hns3_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index 9fb7941..05a9341 100644 ---

[dpdk-dev] [PATCH v2 0/8] hns3 misc updates

2020-10-29 Thread Lijun Ou
warning net/hns3: fix return value check of setting VF bus Huisong Li (2): net/hns3: fix RSS max queue id allowed in multi-TC case net/hns3: fix data type to release fake queue > 255 Lijun Ou (2): net/hns3: enable RSS for ipv6-sctp dst/src port fields net/hns3: add queue count of Rx

[dpdk-dev] [PATCH v2 7/8] net/hns3: fix HW ring not clear after queue stop

2020-10-29 Thread Lijun Ou
released. This patch fix this by reset the sw ring after disable the queue. Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 16 1 file changed, 16

[dpdk-dev] [PATCH v2 3/8] net/hns3: fix RSS max queue id allowed in multi-TC case

2020-10-29 Thread Lijun Ou
id configured in the redirection table must be within the range of the number of queues allocated to a TC. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_f

[dpdk-dev] [PATCH v2 1/8] net/hns3: enable RSS for ipv6-sctp dst/src port fields

2020-10-29 Thread Lijun Ou
For Kunpeng930 NIC hardware, it supports to use dst/src port to RSS hash for ipv6-sctp packet type. However, the Kunpeng920 NIC hardware is different with it. The Kunpeng920 NIC only supports dst/src ip to RSS hash for ipv6-sctp packet type. Signed-off-by: Lijun Ou --- drivers/net/hns3

[dpdk-dev] [PATCH v2 2/8] net/hns3: add queue count of Rx API support

2020-10-29 Thread Lijun Ou
FBDs with the number of BDs to be written back to the hardware. the number of used descriptors of a rx queue is computed as follows: The fbd numbers of reading from FBD register plus the bd numbers to be wrriten back to hardware maintainer by the driver. Signed-off-by: Lijun Ou --- V1->V2: - fix

[dpdk-dev] [PATCH v3 0/8] hns3 misc updates

2020-10-29 Thread Lijun Ou
net/hns3: fix uncheck return value warning net/hns3: fix value check of setting VF PCI bus function Huisong Li (2): net/hns3: fix RSS max queue id allowed in multi-TC case net/hns3: fix data type to release fake queue > 255 Lijun Ou (2): net/hns3: add queue count of Rx API support

[dpdk-dev] [PATCH v3 1/8] net/hns3: add queue count of Rx API support

2020-10-29 Thread Lijun Ou
FBDs with the number of BDs to be written back to the hardware. the number of used descriptors of a rx queue is computed as follows: The fbd numbers of reading from FBD register plus the bd numbers to be wrriten back to hardware maintainer by the driver. Signed-off-by: Lijun Ou --- V1->V2: - fix

[dpdk-dev] [PATCH v3 5/8] net/hns3: fix data type to release fake queue > 255

2020-10-29 Thread Lijun Ou
: a951c1ed3ab5 ("net/hns3: support different numbers of Rx and Tx queues") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_rxtx.c b/driver

[dpdk-dev] [PATCH v3 7/8] net/hns3: fix value check of setting VF PCI bus function

2020-10-29 Thread Lijun Ou
ngbo Zheng Signed-off-by: Lijun Ou --- V2->V3: -rewrite commit in order to fix checkpatch warning V1->V2: -fix checkpatch warning --- drivers/net/hns3/hns3_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/

[dpdk-dev] [PATCH v3 4/8] net/hns3: fix uncheck return value warning

2020-10-29 Thread Lijun Ou
ror message if it is handled incorrectly, so it is not necessary to check hns3_reset_all_tqps return value, here keep ret as the error code causing the exception. Coverity issue: 363048 Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: sta...@dpdk.org Signed-off-by: Hong

[dpdk-dev] [PATCH v3 3/8] net/hns3: fix packect type report in Rx

2020-10-29 Thread Lijun Ou
lated operations") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.h | 5 ++- drivers/net/hns3/hns3_rxtx.c | 99 ++ drivers/net/hns3/hns3_rxtx.h | 13 +++--- 3 files changed, 82 inserti

[dpdk-dev] [PATCH v3 8/8] net/hns3: fix meson build for enabling SVE Rx/Tx

2020-10-29 Thread Lijun Ou
The ARM SVE vector inplementaion defined macro is __ARM_FEATURE_SVE and RTE_MACHINE_CPUFLAG macros have replaced by regular compiler macros. Besides, we remove the unused macro RTE_LIBRTE_HNS3_INC_VECTOR_SVE. Fixes: 952ebacce4f2 ("net/hns3: support SVE Rx") Signed-off-by: Lijun Ou --

[dpdk-dev] [PATCH v3 2/8] net/hns3: fix RSS max queue id allowed in multi-TC case

2020-10-29 Thread Lijun Ou
id configured in the redirection table must be within the range of the number of queues allocated to a TC. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_f

[dpdk-dev] [PATCH v3 6/8] net/hns3: fix HW ring not clear after queue stop

2020-10-29 Thread Lijun Ou
released. This patch fix this by reset the sw ring after disable the queue. Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 16 1 file changed, 16

[dpdk-dev] [PATCH 0/8] misc fixes for hns3

2020-11-02 Thread Lijun Ou
/hns3: add VXLAN-GPE packets TSO and checksum support Hongbo Zheng (2): net/hns3: fix visit unsupported QL register error net/hns3: fix some static check errors by coverity Huisong Li (1): net/hns3: fix configurations of port-level scheduling rate Lijun Ou (1): net/hns3: adjust some header

[dpdk-dev] [PATCH 2/8] net/hns3: fix Tx cksum outer header prepare

2020-11-02 Thread Lijun Ou
header is used to check whether the outer L4 header is UDP. Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Fixes: 6dca716c9e1d ("net/hns3: support TSO") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/h

[dpdk-dev] [PATCH 1/8] net/hns3: add limit promisc mode to VF

2020-11-02 Thread Lijun Ou
off the tx unicast promisc. A limit promisc mode is introduced, which means turn off the tx unicast promisc when promisc is set. Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.h| 21 + drivers/net/hns3/hns3_ethdev_vf.c | 3 +++ 2

[dpdk-dev] [PATCH 3/8] net/hns3: fix Tx checksum with fix header length

2020-11-02 Thread Lijun Ou
: bba636698316 ("net/hns3: support Rx/Tx and related operations") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.h | 2 + drivers/net/hns3/hns3_rxtx.c | 318 +++-- drivers/net/hns3/hns3_rxtx.h |

[dpdk-dev] [PATCH 8/8] net/hns3: adjust some header files location

2020-11-02 Thread Lijun Ou
Some header files have included by others. Also, some header files have a header file self-contained error will trigger building warning. As a result, it is unnecessary and move it into the correct location. Beside, here also remove some unused lines. Signed-off-by: Lijun Ou --- drivers/net

[dpdk-dev] [PATCH 4/8] net/hns3: add VXLAN-GPE packets TSO and checksum support

2020-11-02 Thread Lijun Ou
. Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c index abc2cab..c82116d 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c

[dpdk-dev] [PATCH 6/8] net/hns3: fix visit unsupported QL register error

2020-11-02 Thread Lijun Ou
("net/hns3: add Rx interrupts compatibility") Cc: sta...@dpdk.org Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.c| 8 ++-- drivers/net/hns3/hns3_ethdev.h| 22 -- drivers/net/hns3/hns3_ethdev_vf.c | 8 ++-- d

[dpdk-dev] [PATCH 5/8] net/hns3: fix configurations of port-level scheduling rate

2020-11-02 Thread Lijun Ou
ation") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_dcb.c| 2 +- drivers/net/hns3/hns3_dcb.h| 1 + drivers/net/hns3/hns3_ethdev.c | 8 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_dcb.c

[dpdk-dev] [PATCH 7/8] net/hns3: fix some static check errors by coverity

2020-11-02 Thread Lijun Ou
bba636698316 ("net/hns3: support Rx/Tx and related operations") Fixes: e31f123db06b ("net/hns3: support NEON Tx") Fixes: 8839c5e202f3 ("net/hns3: support device stats") Cc: sta...@dpdk.org Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- drivers/net/hns3

[dpdk-dev] [PATCH] app/testpmd: update uninitialized member when set fwd mode

2020-06-30 Thread Lijun Ou
Signed-off-by: Lijun Ou --- app/test-pmd/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index a7112c9..ee0e904 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -3158,6 +3158,7 @@ set_pkt_forwarding_mode(const char *fwd_mod

[dpdk-dev] [PATCH v2] app/testpmd: fix missing set for current forward engine

2020-07-01 Thread Lijun Ou
Fixes: af75078fece3 ("first public release") Cc: wenzhuo...@intel.com Cc: beilei.x...@intel.com Cc: bernard.iremon...@intel.com Cc: sta...@dpdk.org Signed-off-by: Lijun Ou --- v2: -- fix the title -- add fixes and Cc --- app/test-pmd/config.c | 1 + 1 file changed, 1 insertion(+) diff

[dpdk-dev] [PATCH] app/testpmd: fix the default RSS key configuration

2020-07-09 Thread Lijun Ou
rte_eth_dev_rss_hash_conf_get to correctly the default rss key. Fixes: ac8d22de2394 ("ethdev: flatten RSS configuration in flow API") Cc: sta...@dpdk.org Signed-off-by: Lijun Ou --- app/test-pmd/cmdline_flow.c | 8 1 file changed, 8 insertions(+) diff --git a/app/test-pmd/cmdlin

[dpdk-dev] [PATCH] app/testpmd: configure rxd and txd number correctly

2020-04-17 Thread Lijun Ou
pability supported by the hns3, and then use this range to compare with the actual value by users configured and make reasonable limitation. Signed-off-by: Lijun Ou Signed-off-by: Huisong Li Signed-off-by: Wei Hu (Xavier) --- app/test-pmd/cmdline.c | 11 +-- app/test-pmd/testpmd

[dpdk-dev] [PATCH] app/testpmd: configure rxd and txd number correctly

2020-04-17 Thread Lijun Ou
pability supported by the hns3, and then use this range to compare with the actual value by users configured and make reasonable limitation. Signed-off-by: Lijun Ou Signed-off-by: Huisong Li Signed-off-by: Wei Hu (Xavier) --- app/test-pmd/cmdline.c | 11 +-- app/test-pmd/testpmd

[dpdk-dev] [PATCH v2] app/testpmd: configure rxd and txd number correctly

2020-04-17 Thread Lijun Ou
pability supported by the hns3, and then use this range to compare with the actual value by users configured and make reasonable limitation. Signed-off-by: Lijun Ou Signed-off-by: Huisong Li Signed-off-by: Wei Hu (Xavier) --- V1->V2 1. Remove the modification for changing the mbuf code. --- a

[dpdk-dev] [PATCH] ethdev: check for Rx RSS distribution and RSS hash

2020-04-27 Thread Lijun Ou
When rte api checks the Rx RSS distribution is enable but the RSS hash is disabled, it will return an error. Signed-off-by: Lijun Ou --- lib/librte_ethdev/rte_ethdev.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev

[dpdk-dev] [PATCH v2 0/6] some bugfixes for hns3

2021-01-05 Thread Lijun Ou
Here series fix some hns3 PMD bugs. Change frome V1: 1. remove the fixes patch[6/7] from V1 2. fix ferruh Yigit's comments. Huisong Li (3): net/hns3: fix xstats statistics with id and names net/hns3: fix abnormal return value in xstats net/hns3: fix Rx/Tx abnormal errors stats Lijun

[dpdk-dev] [PATCH v2 2/6] net/hns3: fix xstats statistics with id and names

2021-01-05 Thread Lijun Ou
. Fixes: 8839c5e202f3 ("net/hns3: support device stats") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- V1->V2: -fix ids and values check -add hns3_dev_xstats_get_names_by_id check --- drivers/net/hns3/hns3_stats.c | 24 ++-- 1 fil

[dpdk-dev] [PATCH v2 6/6] net/hns3: remove unnecessary memset

2021-01-05 Thread Lijun Ou
The hns3_cmd_desc has memset when setup and the memset for req is unnecessary. Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rss.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c index e2f0468..b5df374 100644 --- a/drivers

[dpdk-dev] [PATCH v2 3/6] net/hns3: fix abnormal return value in xstats

2021-01-05 Thread Lijun Ou
ng Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_stats.c b/drivers/net/hns3/hns3_stats.c index 1597af3..42ec9b8 100644 --- a/drivers/net/hns3/hns3_stats.c +++ b/drivers/net/hns3/hns3_stat

[dpdk-dev] [PATCH v2 4/6] net/hns3: fix Rx/Tx abnormal errors stats

2021-01-05 Thread Lijun Ou
1ab3e93361 ("net/hns3: add simple Rx path") Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_stats.c | 59 --- 1 file

[dpdk-dev] [PATCH v2 1/6] net/hns3: fix incorrect interception with filter director

2021-01-05 Thread Lijun Ou
ned-off-by: Lijun Ou --- drivers/net/hns3/hns3_flow.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/hns3/hns3_flow.c b/drivers/net/hns3/hns3_flow.c index ee6ec15..f303df4 100644 --- a/drivers/net/hns3/hns3_flow.c +++ b/drivers/net/hns3/hns3_flow.c @@ -1208,

[dpdk-dev] [PATCH v2 5/6] net/hns3: fix crash with multi-process

2021-01-05 Thread Lijun Ou
tate query") Cc: sta...@dpdk.org Signed-off-by: Min Hu (Connor) Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.c | 16 ++-- drivers/net/hns3/hns3_ethdev.h | 2 -- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hn

[dpdk-dev] [RFC] app/testpmd: support multi-process

2021-01-08 Thread Lijun Ou
-procs=2 --proc-id=1 Signed-off-by: Min Hu (Connor) Signed-off-by: Lijun Ou --- app/test-pmd/cmdline.c| 6 ++- app/test-pmd/config.c | 9 +++- app/test-pmd/parameters.c | 9 app/test-pmd/testpmd.c| 133 -- app/test-pmd/testpmd.h

[dpdk-dev] [PATCH 8/8] net/hns3: remove unused assignment for RSS key

2021-01-14 Thread Lijun Ou
rte_eth_dev_configure API will be called directly and RSS key is NULL after init PMD driver. Therefore, the assignment for RSS key in hns3_dev_configure function is unncessary. Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev.c| 6 -- drivers/net/hns3/hns3_ethdev_vf.c | 6 -- 2 files

[dpdk-dev] [PATCH 5/8] net/hns3: fix register length when dump registers

2021-01-14 Thread Lijun Ou
and width of the register. Fixes: 936eda25e8da ("net/hns3: support dump register") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_regs.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/driver

[dpdk-dev] [PATCH 7/8] net/hns3: fix dump register out of range

2021-01-14 Thread Lijun Ou
. This patch replace num_msi with intr_tqps_num which indicate the number of interrupts used by the tqps. Fixes: 936eda25e8da ("net/hns3: support dump register") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_regs.c | 2 +- 1 file

<    1   2   3   >