[PATCH 05/16] net/hns3: use hardware config to report redirection table

2023-03-10 Thread Dongdong Liu
From: Huisong Li Currently, reta_query() API reports the redirection table from software. This patch uses the one in hardware to report. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/

[PATCH 06/16] net/hns3: separate the setting of hash algorithm

2023-03-10 Thread Dongdong Liu
ave current algorithm for restoring algorithm during reset phase. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 60 +--- drivers/net/hns

[PATCH 07/16] net/hns3: separate the setting of hash key

2023-03-10 Thread Dongdong Liu
this field to save, they has a global flow_rss_list to maintain all rules which save hash key. And hash key can be restored by this rule information during the reset phase. Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_rss.c | 5 +++-- 1 file

[PATCH 08/16] net/hns3: separate the setting of redirection table

2023-03-10 Thread Dongdong Liu
rte_flow API no need to use this field to save, they has a global RSS flow list to maintain all rules which can be used to restore the table during the reset phase. Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 2 -- drivers/net/hns3

[PATCH 09/16] net/hns3: separate the setting of RSS types

2023-03-10 Thread Dongdong Liu
the saved rule. Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 3 ++- drivers/net/hns3/hns3_rss.c | 22 ++ drivers/net/hns3/hns3_rss.h | 1 + 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a

[PATCH 10/16] net/hns3: separate the setting and clearing of RSS rule

2023-03-10 Thread Dongdong Liu
From: Huisong Li Separate the setting and clearing of RSS rule. Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 46 +--- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/drivers/net

[PATCH 13/16] net/hns3: adding queue buffer size hash rule allowed

2023-03-10 Thread Dongdong Liu
y: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_rss.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_rss.h b/drivers/net/hns3/hns3_rss.h index 21b90789d0..cc0bb8431d 100644 --- a/drivers/net/hns3/hns3_rss.h +++ b/drivers/net/hns3/

[PATCH 11/16] net/hns3: use new RSS rule to configure hardware

2023-03-10 Thread Dongdong Liu
ned-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 52 ++-- 1 file changed, 20 insertions(+), 32 deletions(-) diff --git a/drivers/net/hns3/hns3_flow.c b/drivers/net/hns3/hns3_flow.c index 4da98d7adc..3700d073b1 100644 --- a/drivers/net/hns3/hns3_flow.c +++

[PATCH 12/16] net/hns3: save hash algo to RSS filter list node

2023-03-10 Thread Dongdong Liu
From: Huisong Li Save hash algo from rte flow RSS rule to RSS filter list node instead of struct hns3_rss_conf. Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions

[PATCH 14/16] net/hns3: separate rte flow RSS config from hns3 rss conf

2023-03-10 Thread Dongdong Liu
flow RSS filter list node element. Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 23 --- drivers/net/hns3/hns3_flow.h | 10 +- drivers/net/hns3/hns3_rss.h | 5 - 3 files changed, 21 insertions(+), 17

[PATCH 16/16] net/hns3: add the verification of RSS types

2023-03-10 Thread Dongdong Liu
rc/dst but hasn't supported packet type and hasn't IP packet type. Fixes: 13c3993240c8 ("net/hns3: add L3 and L4 RSS types") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 12 +++--- dri

[PATCH 15/16] net/hns3: reimplement hash flow function

2023-03-10 Thread Dongdong Liu
a...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.h | 9 - drivers/net/hns3/hns3_flow.c | 966 +++-- drivers/net/hns3/hns3_flow.h | 15 +- drivers/net/hns3/hns3_rss.c| 144 ++--- drivers/net/hns3/hns3_r

[PATCH 0/5] support setting and querying RSS algorithms

2023-03-15 Thread Dongdong Liu
This patchset is to support setting and querying RSS algorithms. Huisong Li (1): net/hns3: support setting and querying RSS hash function Jie Hai (4): ethdev: support setting and querying rss algorithm app/proc-info: fix never show RSS info app/proc-info: show RSS types with strings app

[PATCH 1/5] ethdev: support setting and querying rss algorithm

2023-03-15 Thread Dongdong Liu
set. Do the same for rte_eth_dev_rss_hash_update and rte_eth_dev_configure. To check whether the drivers report the func field, it is set to default value before querying. Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- doc/guides/rel_notes/release_23_03.rst | 4 ++-- lib/ethdev/rte_ethdev.c

[PATCH 2/5] net/hns3: support setting and querying RSS hash function

2023-03-15 Thread Dongdong Liu
From: Huisong Li Support setting and querying RSS hash function by ethdev ops. Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_rss.c | 47 + 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/drivers/net/hns3

[PATCH 3/5] app/proc-info: fix never show RSS info

2023-03-15 Thread Dongdong Liu
ff-by: Jie Hai Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 53e852a07c..878ce37e8b 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c

[PATCH 4/5] app/proc-info: show RSS types with strings

2023-03-15 Thread Dongdong Liu
): 6d5a56da255b0ec24167253d43a38fb0d0ca2bcbae7b30b477cb2da38030f20c6a42b73bbeac01fa Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 120 --- 1 file changed, 113 insertions(+), 7 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 878ce37e8b..7b6f8f1228 100644

[PATCH 5/5] app/proc-info: support querying RSS hash algorithm

2023-03-15 Thread Dongdong Liu
From: Jie Hai Display RSS hash algorithm with command show-port as below. - RSS info -- hash algorithm: toeplitz Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/app/proc-info

[PATCH] app/testpmd: display RSS hash key of rte flow rule

2023-03-16 Thread Dongdong Liu
From: Huisong Li There are two ways to set RSS hash key with rte flow rule: 1. 'key_len' isn't zero and 'key' is NULL. 2. 'key_len' isn't zero and 'key' isn't NULL. This patch adds displaying for the hash key of rte flow rule. Signed-of

Re: [PATCH 1/5] ethdev: support setting and querying rss algorithm

2023-03-16 Thread Dongdong Liu
Hi Ivan Many thanks for your review. On 2023/3/15 19:28, Ivan Malov wrote: Hi, On Wed, 15 Mar 2023, Dongdong Liu wrote: From: Jie Hai Currently, rte_eth_rss_conf supports configuring rss hash functions, rss key and it's length, but not rss hash algorithm. The structure ``rte_eth_rss

Re: [PATCH 1/5] ethdev: support setting and querying rss algorithm

2023-03-16 Thread Dongdong Liu
Hi Thomas On 2023/3/15 21:43, Thomas Monjalon wrote: 15/03/2023 12:00, Dongdong Liu: From: Jie Hai --- a/doc/guides/rel_notes/release_23_03.rst +++ b/doc/guides/rel_notes/release_23_03.rst -* No ABI change that would break compatibility with 22.11. - +* ethdev: Added "func"

Re: [PATCH 09/33] doc: update hns3 guide

2023-03-22 Thread Dongdong Liu
File Options" section to "Compilation Options" - Rename "Runtime Config Options" section to "Runtime Configuration" Signed-off-by: Ferruh Yigit Acked-by: Dongdong Liu Thanks, Dongdong --- doc/guides/nics/hns3.rst | 30 +++--- 1 file c

Re: [PATCH] net/hns3: fix build warning

2023-04-04 Thread Dongdong Liu
Acked-by: Dongdong Liu Thanks, Dongdong Fixes: 64308555d5bf ("net/hns3: fix link status when port is stopped") Cc: sta...@dpdk.org Signed-off-by: Jerin Jacob --- drivers/net/hns3/hns3_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_

[PATCH 0/7] add setting and querying of LLRS FEC mode

2023-04-07 Thread Dongdong Liu
This patchset include some bugfixes for hns3 fec and add setting and querying of LLRS FEC mode. Jie Hai (7): net/hns3: fix fec mode for 200G ports net/hns3: fix fec mode check error net/hns3: fix missing FEC capability ethdev: introduce low latency RS FEC app/testpmd: add setting and que

[PATCH 1/7] net/hns3: fix fec mode for 200G ports

2023-04-07 Thread Dongdong Liu
From: Jie Hai The hardware does not support NOFEC for 200G ports. So delete this bit. Fixes: 9bf2ea8dbc65 ("net/hns3: support FEC") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 2/7] net/hns3: fix fec mode check error

2023-04-07 Thread Dongdong Liu
o extracts the code for verifying mode parameter into a function. Fixes: 9bf2ea8dbc65 ("net/hns3: support FEC") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.c | 50 -- 1 file changed, 24 inserti

[PATCH 3/7] net/hns3: fix missing FEC capability

2023-04-07 Thread Dongdong Liu
of other rates are not reported. So this patch reports the FEC capabilities by the speed capabilities of the network port. Fixes: 9bf2ea8dbc65 ("net/hns3: support FEC") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethd

[PATCH 4/7] ethdev: introduce low latency RS FEC

2023-04-07 Thread Dongdong Liu
From: Jie Hai This patch introduces LLRS (low latency Reed Solomon FEC). LLRS supports for 25 Gbps, 50 Gbps, 100 Gbps, 200 Gbps and 400 Gbps Ethernet networks. Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- doc/guides/rel_notes/release_23_07.rst | 3 +++ lib/ethdev/rte_ethdev.h

[PATCH 5/7] app/testpmd: add setting and querying of LLRS FEC mode

2023-04-07 Thread Dongdong Liu
From: Jie Hai This patch supports setting and querying of LLRS FEC mode. Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- app/test-pmd/cmdline.c | 5 - app/test-pmd/config.c | 4 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +- 3

[PATCH 7/7] net/hns3: support getting current FEC capability from firmware

2023-04-07 Thread Dongdong Liu
From: Jie Hai Obtain the supported FEC capability from the firmware to enhance code compatibility. Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_cmd.h| 9 - drivers/net/hns3/hns3_ethdev.c | 29

[PATCH 6/7] net/hns3: add LLRS FEC mode support for 200G ports

2023-04-07 Thread Dongdong Liu
From: Jie Hai This patch supports the query and configuration of LLRS FEC mode. Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_cmd.c| 1 + drivers/net/hns3/hns3_cmd.h| 2 ++ drivers/net/hns3/hns3_ethdev.c | 21 - 3 files changed, 15

[PATCH 2/2] net/hns3: support dump media type

2023-04-21 Thread Dongdong Liu
From: Chengwen Feng The media type information helps locate faults such as AN or rate switching, so add dump media type in eth_dev_priv_dump ops. Signed-off-by: Chengwen Feng Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_dump.c | 2 ++ drivers/net/hns3/hns3_ethdev.c | 2 +- drivers

[PATCH 0/2] net/hns3: add some features for hns3 pmd

2023-04-21 Thread Dongdong Liu
This patchset is to add some features for hns3 pmd. Chengwen Feng (1): net/hns3: support dump media type Dongdong Liu (1): net/hns3: simplify for hardware csum offloading drivers/net/hns3/hns3_cmd.c| 3 ++ drivers/net/hns3/hns3_cmd.h| 1 + drivers/net/hns3/hns3_dump.c | 3

[PATCH 1/2] net/hns3: simplify for hardware csum offloading

2023-04-21 Thread Dongdong Liu
L4. Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_cmd.c| 3 ++ drivers/net/hns3/hns3_cmd.h| 1 + drivers/net/hns3/hns3_dump.c | 1 + drivers/net/hns3/hns3_ethdev.h | 1 + drivers/net/hns3/hns3_rxtx.c | 52 +- drivers/net/hns3/hns3_rxtx.h

Re: [PATCH 1/5] ethdev: support setting and querying rss algorithm

2023-06-05 Thread Dongdong Liu
Hi Ferruh On 2023/6/3 4:19, Ferruh Yigit wrote: On 3/16/2023 1:16 PM, Dongdong Liu wrote: Hi Thomas On 2023/3/15 21:43, Thomas Monjalon wrote: 15/03/2023 12:00, Dongdong Liu: From: Jie Hai --- a/doc/guides/rel_notes/release_23_03.rst +++ b/doc/guides/rel_notes/release_23_03.rst -* No ABI

Re: [PATCH 3/5] app/proc-info: fix never show RSS info

2023-06-05 Thread Dongdong Liu
Hi Ferruh On 2023/6/3 4:19, Ferruh Yigit wrote: On 3/15/2023 11:00 AM, Dongdong Liu wrote: From: Jie Hai Command show-port shows rss info only if rss_conf.rss_key is not null but it will never be true. This patch allocates memory for rss_conf.rss_key and makes it possible to show rss info

Re: [PATCH 3/5] app/proc-info: fix never show RSS info

2023-06-05 Thread Dongdong Liu
Hi Stephen On 2023/6/3 5:19, Stephen Hemminger wrote: On Wed, 15 Mar 2023 19:00:31 +0800 Dongdong Liu wrote: + rss_key = rte_malloc(NULL, + dev_info.hash_key_size * sizeof(uint8_t), 0); + if (rss_key == NULL) + return

Re: [PATCH 4/5] app/proc-info: show RSS types with strings

2023-06-05 Thread Dongdong Liu
Hi Ferruh On 2023/6/3 4:22, Ferruh Yigit wrote: On 3/15/2023 11:00 AM, Dongdong Liu wrote: From: Jie Hai show RSS types details and adjust RSS info display format as following: - RSS info -- hf: ipv4 ipv4-frag ipv4-other ipv6 ipv6-frag ipv6-other

[PATCH] net/hns3: fix the way to trigger IMP reset

2023-06-06 Thread Dongdong Liu
/hns3: support device reset") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c index

[PATCH] doc: deprecation notice to add RSS hash algorithm field

2023-06-06 Thread Dongdong Liu
Deprecation notice to add "func" field to ``rte_eth_rss_conf`` structure for RSS hash algorithm. Signed-off-by: Dongdong Liu --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides

[PATCH] config/arm: add HiSilicon hip10

2023-06-26 Thread Dongdong Liu
Adding support for HiSilicon hip10 platform. Signed-off-by: Dongdong Liu --- config/arm/arm64_hip10_linux_gcc | 16 config/arm/meson.build | 19 +++ 2 files changed, 35 insertions(+) create mode 100644 config/arm/arm64_hip10_linux_gcc diff --git a

[PATCH 2/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-26 Thread Dongdong Liu
l uses 'strict' mode as the default mode. Please select 'nostrict' mode if you request all same ethertype packets with and without VLAN to a specified queue. Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- doc/guides/nics/hns3.rst | 20 +

[PATCH 1/2] net/hns3: delete duplicate macro definition

2023-06-26 Thread Dongdong Liu
From: Huisong Li This patch delete some duplicate macro definitions. Fixes: a4c7152d0581 ("net/hns3: extract common code to its own file") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.h | 7 --- 1 file changed, 7

[PATCH 0/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-26 Thread Dongdong Liu
This patchset contains two patches: The first one is to delete duplicate macro definition for hns3. The second one is to add FDIR VLAN match mode runtime config for hns3. Huisong Li (2): net/hns3: delete duplicate macro definition net/hns3: add FDIR VLAN match mode runtime config doc/guides/

[PATCH v2 0/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-27 Thread Dongdong Liu
This patchset contains two patches: The first one is to delete duplicate macro definition for hns3. The second one is to add FDIR VLAN match mode runtime config for hns3 v1->v2: - Fix the hns3.rst doc build warining. Huisong Li (2): net/hns3: delete duplicate macro definition net/hns3: add FD

[PATCH v2 2/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-27 Thread Dongdong Liu
l uses 'strict' mode as the default mode. Please select 'nostrict' mode if you request all same ethertype packets with and without VLAN to a specified queue. Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- doc/guides/nics/hns3.rst | 26 +++

[PATCH v2 1/2] net/hns3: delete duplicate macro definition

2023-06-27 Thread Dongdong Liu
From: Huisong Li This patch delete some duplicate macro definitions. Fixes: a4c7152d0581 ("net/hns3: extract common code to its own file") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.h | 7 --- 1 file changed, 7

Re: [PATCH v2 2/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-27 Thread Dongdong Liu
Hi Thomas Many thanks for your review. On 2023/6/28 7:12, Thomas Monjalon wrote: 27/06/2023 09:11, Dongdong Liu: +- ``fdir_vlan_match_mode`` (default `strict`) + + Used to select VLAN match mode. This runtime config can be `strict` + or `nostrict` and is only valid for PF drives. drives

[PATCH v3 1/2] net/hns3: delete duplicate macro definition

2023-06-29 Thread Dongdong Liu
From: Huisong Li This patch delete some duplicate macro definitions. Fixes: a4c7152d0581 ("net/hns3: extract common code to its own file") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.h | 7 --- 1 file changed, 7

[PATCH v3 0/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-29 Thread Dongdong Liu
This patchset contains two patches: The first one is to delete duplicate macro definition for hns3. The second one is to add FDIR VLAN match mode runtime config for hns3 v2->v3: - Use double backquotes for values of the devargs and fix spelling errors. v1->v2: - Fix the hns3.rst doc build warini

[PATCH v3 2/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-29 Thread Dongdong Liu
l uses 'strict' mode as the default mode. Please select 'nostrict' mode if you request all same ethertype packets with and without VLAN to a specified queue. Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- doc/guides/nics/hns3.rst | 26 +++

Re: [PATCH v2 2/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-29 Thread Dongdong Liu
On 2023/6/29 19:08, Ferruh Yigit wrote: On 6/28/2023 3:59 AM, Dongdong Liu wrote: Hi Thomas Many thanks for your review. On 2023/6/28 7:12, Thomas Monjalon wrote: 27/06/2023 09:11, Dongdong Liu: +- ``fdir_vlan_match_mode`` (default `strict`) + + Used to select VLAN match mode. This

Re: [PATCH v3 2/2] net/hns3: add FDIR VLAN match mode runtime config

2023-06-29 Thread Dongdong Liu
Hi Ferruh On 2023/6/29 23:52, Ferruh Yigit wrote: On 6/29/2023 2:21 PM, Dongdong Liu wrote: diff --git a/doc/guides/nics/hns3.rst b/doc/guides/nics/hns3.rst index 5373ec5a8f..001ccbdb62 100644 --- a/doc/guides/nics/hns3.rst +++ b/doc/guides/nics/hns3.rst @@ -140,6 +140,32 @@ Runtime

[PATCH 0/3] doc: fix some errors in hns3 guide

2023-06-30 Thread Dongdong Liu
This patchset is to fix some errors in hns3 guide doc. Dongdong Liu (3): doc: fix invalid link in hns3 guide doc: fix wrong syntax in hns3 guide doc: fix wrong number of spaces in hns3 guide doc/guides/nics/hns3.rst | 33 +++-- 1 file changed, 19 insertions

[PATCH 1/3] doc: fix invalid link in hns3 guide

2023-06-30 Thread Dongdong Liu
The LSC support of Vf driver depends on a patch link in kernel pf driver. But current the link is invalid, so fixes it. Add a blank line after the link. Fixes: 80006b598730 ("doc: add link status event requirements in hns3 guide") Cc: sta...@dpdk.org Signed-off-by: Dongdong Liu ---

[PATCH 2/3] doc: fix wrong syntax in hns3 guide

2023-06-30 Thread Dongdong Liu
'::' doesn't provide pre-formatted text without an empty line after it, so fixes it. Fixes: cdf6a5fbc540 ("doc: add runtime option examples to hns3 guide") Cc: sta...@dpdk.org Signed-off-by: Dongdong Liu --- doc/guides/nics/hns3.rst | 3 +++ 1 file changed, 3 insert

[PATCH 3/3] doc: fix wrong number of spaces in hns3 guide

2023-06-30 Thread Dongdong Liu
The current description of 'mbx_time_limit_ms' has three spaces at the beginning. Use two spaces to keep the same style with other places and add a blank line after '::'. Fixes: 2fc3e696a7f1 ("net/hns3: add runtime config for mailbox limit time") Cc: sta...@dpdk.or

[PATCH] net/hns3: fix non-zero weight for disabled TC

2023-07-07 Thread Dongdong Liu
%. Actually, this operation is also redundant, because these disabled TC will never be used. So this patch sets the weight of all TC based on user's configuration. Fixes: 62e3ccc2b94c ("net/hns3: support flow control") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-b

[PATCH 0/5] net/hns3: some performance optimizations

2023-07-11 Thread Dongdong Liu
This patchset is to do some performance optimizations for hns3. Huisong Li (5): net/hns3: fix incorrect index to look up table in NEON Rx net/hns3: fix the order of NEON Rx code net/hns3: optimize free mbuf code for SVE Tx net/hns3: optimize the rearm mbuf function for SVE Rx net/hns3: o

[PATCH 1/5] net/hns3: fix incorrect index to look up table in NEON Rx

2023-07-11 Thread Dongdong Liu
truth. Fixes: a3d4f4d291d7 ("net/hns3: support NEON Rx") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_rxtx_vec_neon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_rxtx_vec_neon.h

[PATCH 3/5] net/hns3: optimize free mbuf code for SVE Tx

2023-07-11 Thread Dongdong Liu
VE Tx performance. Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_rxtx_vec_sve.c | 42 +--- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/drivers/net/hns3/hns3_rxtx_vec_sve.c b/drivers/net/hns3/hns3_rxtx_vec_sve.c index 8bfc3

[PATCH 4/5] net/hns3: optimize the rearm mbuf function for SVE Rx

2023-07-11 Thread Dongdong Liu
From: Huisong Li Use hns3_rxq_rearm_mbuf() to replace the hns3_rxq_rearm_mbuf_sve() to optimize the performance of SVE Rx. On the rxonly forwarding mode, the performance of a single queue for 64B packet is improved by ~15%. Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers

[PATCH 2/5] net/hns3: fix the order of NEON Rx code

2023-07-11 Thread Dongdong Liu
From: Huisong Li This patch reorders the order of the NEON Rx for better maintenance and easier understanding. Fixes: a3d4f4d291d7 ("net/hns3: support NEON Rx") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_rxtx_vec_n

[PATCH 5/5] net/hns3: optimize SVE Rx performance

2023-07-11 Thread Dongdong Liu
tor. On the rxonly forwarding mode, the performance of a single queue or 64B packet is improved by ~40%. Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_rxtx_vec_sve.c | 138 ++- 1 file changed, 28 insertions(+), 110 deletions(-) diff --g

Re: [PATCH 0/5] net/hns3: some performance optimizations

2023-07-11 Thread Dongdong Liu
Hi, Ferruh On 2023/7/11 18:48, Ferruh Yigit wrote: On 7/11/2023 11:24 AM, Dongdong Liu wrote: This patchset is to do some performance optimizations for hns3. Huisong Li (5): net/hns3: fix incorrect index to look up table in NEON Rx net/hns3: fix the order of NEON Rx code net/hns3

Re: [PATCH 1/6] app/procinfo: add version dump

2022-09-19 Thread Dongdong Liu
Hi Pattan Many thanks for you review. On 2022/9/19 17:23, Pattan, Reshma wrote: -Original Message- From: Dongdong Liu Subject: [PATCH 1/6] app/procinfo: add version dump If this is V2 version of patch, please add V2 in the patch heading. And can you mark the previous version of

[PATCH v2 0/6] app/procinfo: add some extended features

2022-09-20 Thread Dongdong Liu
This patchset is to add some extended features for dpdk-proc-info. v1->v2: Fix some comments from Reshma. Dongdong Liu (2): app/procinfo: fix some wrong doxygen syntax doc: add some extended features in procinfo guide Jie Hai (1): app/proc-info: add dump of Rx/Tx burst mode Min

[PATCH v2 2/6] app/procinfo: add RSS RETA dump

2022-09-20 Thread Dongdong Liu
From: "Min Hu (Connor)" This patch add support for RSS reta dump. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --show-rss-reta Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 58 +

[PATCH v2 1/6] app/procinfo: add version dump

2022-09-20 Thread Dongdong Liu
From: "Min Hu (Connor)" This patch add support for dump dpdk version and ethdev firmware version. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --show-version Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/m

[PATCH v2 4/6] app/proc-info: add dump of Rx/Tx burst mode

2022-09-20 Thread Dongdong Liu
: Dongdong Liu --- app/proc-info/main.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index bc93af51df..9f708421c5 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -838,6 +838,7 @@ show_port(void) for (j

[PATCH v2 3/6] app/procinfo: add module info dump

2022-09-20 Thread Dongdong Liu
From: "Min Hu (Connor)" This patch add support for module info dump. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --show-module-info Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/m

[PATCH v2 5/6] app/procinfo: fix some wrong doxygen syntax

2022-09-20 Thread Dongdong Liu
This code is to do cleanup for the wrong doxygen syntax comments. Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 9f708421c5

[PATCH v2 6/6] doc: add some extended features in procinfo guide

2022-09-20 Thread Dongdong Liu
Add the below extended features in procinfo guide. --show-port-private --show-version --show-rss-reta --show-module-info Signed-off-by: Dongdong Liu --- doc/guides/tools/proc_info.rst | 12 1 file changed, 12 insertions(+) diff --git a/doc/guides/tools/proc_info.rst b/doc/guides

Re: [PATCH v2 1/6] app/procinfo: add version dump

2022-09-21 Thread Dongdong Liu
Hi Stephen Many thanks for your review. On 2022/9/20 23:21, Stephen Hemminger wrote: On Tue, 20 Sep 2022 18:51:42 +0800 Dongdong Liu wrote: From: "Min Hu (Connor)" This patch add support for dump dpdk version and ethdev firmware version. The command is like: dpdk-proc-info -a xx

Re: [PATCH v2 2/6] app/procinfo: add RSS RETA dump

2022-09-21 Thread Dongdong Liu
On 2022/9/20 23:24, Stephen Hemminger wrote: On Tue, 20 Sep 2022 18:51:43 +0800 Dongdong Liu wrote: + ret = rte_eth_dev_info_get(id, &dev_info); + if (ret < 0) { + printf("Error getting device info, ret = %d\n", ret); Pr

Re: [PATCH v2 3/6] app/procinfo: add module info dump

2022-09-21 Thread Dongdong Liu
On 2022/9/20 23:22, Stephen Hemminger wrote: On Tue, 20 Sep 2022 18:51:44 +0800 Dongdong Liu wrote: + + RTE_ETH_FOREACH_DEV(i) { + /* Skip if port is not in mask */ + if ((enabled_port_mask & (1ul << i)) == 0) +

[PATCH v3 1/7] app/procinfo: add dpdk version dump

2022-09-21 Thread Dongdong Liu
From: "Min Hu (Connor)" Add support for dump dpdk version. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --version Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 19 ++- 1 file changed, 18 insert

[PATCH v3 2/7] app/procinfo: add firmware version dump

2022-09-21 Thread Dongdong Liu
Add support for dump ethdev firmware version. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --firmware-version Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 35 +++ 1 file changed, 35 insertions

[PATCH v3 4/7] app/procinfo: add module info dump

2022-09-21 Thread Dongdong Liu
From: "Min Hu (Connor)" This patch add support for module info dump. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --show-module-info Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/m

[PATCH v3 0/7] app/procinfo: add some extended features

2022-09-21 Thread Dongdong Liu
x some comments from Reshma. Dongdong Liu (3): app/procinfo: add firmware version dump app/procinfo: fix some wrong doxygen syntax doc: add some extended features in procinfo guide Jie Hai (1): app/procinfo: add dump of Rx/Tx burst mode Min Hu (Connor) (3): app/procinfo: add dpdk version dump

[PATCH v3 3/7] app/procinfo: add RSS RETA dump

2022-09-21 Thread Dongdong Liu
From: "Min Hu (Connor)" This patch add support for RSS reta dump. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --show-rss-reta Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 57 +

[PATCH v3 6/7] app/procinfo: fix some wrong doxygen syntax

2022-09-21 Thread Dongdong Liu
This code is to do cleanup for the wrong doxygen syntax comments. Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index e1a153c934

[PATCH v3 5/7] app/procinfo: add dump of Rx/Tx burst mode

2022-09-21 Thread Dongdong Liu
: Dongdong Liu --- app/proc-info/main.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 0e78f8b75f..e1a153c934 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -845,6 +845,7 @@ show_port(void) for (j

[PATCH v3 7/7] doc: add some extended features in procinfo guide

2022-09-21 Thread Dongdong Liu
Add the below extended features in procinfo guide. --show-port-private --version --firmware-version --show-rss-reta --show-module-info Signed-off-by: Dongdong Liu --- doc/guides/tools/proc_info.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git a/doc/guides/tools

[PATCH v4 0/3] support ethdev Rx/Tx descriptor dump

2022-09-23 Thread Dongdong Liu
Support ethdev Rx/Tx descriptor dump by using procinfo tool. Note: '[PATCH v4 1/3] net/hns3: support Rx/Tx bd dump' depend on [1] applied first. Hope patchset [1] can be applied soon. [1]: [PATCH RESEND 00/13] some bugfixes and clean code for hns3 https://patches.dpdk.org/project/dpdk/list/?serie

[PATCH v4 2/3] net/hns3: support Rx/Tx bd dump

2022-09-23 Thread Dongdong Liu
From: "Min Hu (Connor)" This patch support query HW descriptor from hns3 device. HW descriptor is also called BD(buffer description) which is shared memory between software and hardware. Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_dump.c

[PATCH v4 3/3] app/procinfo: support descriptor dump

2022-09-23 Thread Dongdong Liu
by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 80 1 file changed, 80 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 1bfba5f60d..3907af3213 100644 --- a/app/proc-info/main.c +++ b/app/proc-i

[PATCH v4 1/3] ethdev: introduce ethdev desc dump API

2022-09-23 Thread Dongdong Liu
he new API is introduced. Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu Acked-by: Ray Kinsella --- doc/guides/rel_notes/release_22_11.rst | 7 lib/ethdev/ethdev_driver.h | 46 +++ lib/ethdev/rte_ethdev.c| 52 +

Re: [PATCH v3 2/7] app/procinfo: add firmware version dump

2022-09-24 Thread Dongdong Liu
Hi Reshma Many thanks for your review. On 2022/9/23 17:22, Pattan, Reshma wrote: -Original Message- From: Dongdong Liu Subject: [PATCH v3 2/7] app/procinfo: add firmware version dump Add support for dump ethdev firmware version. The command is like: dpdk-proc-info -a :xx:xx.x

Re: [PATCH v3 5/7] app/procinfo: add dump of Rx/Tx burst mode

2022-09-24 Thread Dongdong Liu
On 2022/9/23 18:02, Pattan, Reshma wrote: -Original Message- From: Dongdong Liu Subject: [PATCH v3 5/7] app/procinfo: add dump of Rx/Tx burst mode Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- + if (rte_eth_rx_burst_mode_get(i, j, &mode)

Re: [PATCH v3 4/7] app/procinfo: add module info dump

2022-09-24 Thread Dongdong Liu
On 2022/9/23 17:51, Pattan, Reshma wrote: -Original Message- From: Dongdong Liu Subject: [PATCH v3 4/7] app/procinfo: add module info dump From: "Min Hu (Connor)" This patch add support for module info dump. The command is like: dpdk-proc-info -a :xx:xx.x --file-

Re: [PATCH v3 6/7] app/procinfo: fix some wrong doxygen syntax

2022-09-24 Thread Dongdong Liu
On 2022/9/23 15:53, Pattan, Reshma wrote: -Original Message- From: Dongdong Liu Sent: Wednesday, September 21, 2022 3:27 PM To: dev@dpdk.org; Pattan, Reshma ; tho...@monjalon.net; ferruh.yi...@xilinx.com; andrew.rybche...@oktetlabs.ru Cc: Dongdong Liu ; Maryam Tahhan Subject

[PATCH v7 0/7] app/procinfo: add some extended features

2022-09-24 Thread Dongdong Liu
3: Fix some comments from Stephen. - Use --version option for DPDK version. - add --firmware-version option to show firmware. - Use errors on stderr, not stdout. - Delete some unnecessary code. v1->v2: Fix some comments from Reshma. Dongdong Liu (3): app/procinfo: add firmware version d

[PATCH v7 1/7] app/procinfo: add dpdk version dump

2022-09-24 Thread Dongdong Liu
From: "Min Hu (Connor)" Add support for dump dpdk version. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --version Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu Acked-by: Reshma Pattan --- app/proc-info/main.c | 19 ++- 1 fi

[PATCH v7 3/7] app/procinfo: add RSS RETA dump

2022-09-24 Thread Dongdong Liu
From: "Min Hu (Connor)" This patch add support for RSS reta dump. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --show-rss-reta Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu Acked-by: Reshma Pattan --- app/proc-info/m

[PATCH v7 4/7] app/procinfo: add module eeprom info dump

2022-09-24 Thread Dongdong Liu
From: "Min Hu (Connor)" This patch add support for module eeprom info dump. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --show-module-eeprom Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu --- app/proc-info/m

[PATCH v7 2/7] app/procinfo: add firmware version dump

2022-09-24 Thread Dongdong Liu
Add support for dump ethdev firmware version. The command is like: dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- --firmware-version Signed-off-by: Min Hu (Connor) Signed-off-by: Dongdong Liu Acked-by: Reshma Pattan --- app/proc-info/main.c | 35 +++ 1

[PATCH v7 5/7] app/procinfo: add dump of Rx/Tx burst mode

2022-09-24 Thread Dongdong Liu
: Dongdong Liu Acked-by: Reshma Pattan --- app/proc-info/main.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 0e932f0245..be0e0c65f9 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -846,6 +846,7 @@ show_port(void

[PATCH v7 6/7] app/procinfo: fix some wrong doxygen syntax

2022-09-24 Thread Dongdong Liu
This code is to do cleanup for the wrong doxygen syntax comments The DPDK API is documented using doxygen comment annotations in the header files. The procinfo code seems no need to use doxygen comment. Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 40

[PATCH v7 7/7] doc: add some extended features in procinfo guide

2022-09-24 Thread Dongdong Liu
Add the below extended features in procinfo guide. --show-port-private --version --firmware-version --show-rss-reta --show-module-eeprom Signed-off-by: Dongdong Liu Acked-by: Reshma Pattan --- doc/guides/tools/proc_info.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git a

<    1   2   3   >