[dpdk-dev] [PATCH] rte_metrics: unconditionally export rte_metrics_tel_xxx functions

2021-02-22 Thread Jie
From: Jie Zhou This patch allows the same set of rte_metrics_tel_* functions to be exported no matter JANSSON is available or not, by doing following: 1. Leverage dpdk_conf to set configuration flag RTE_HAVE_JANSSON when Jansson dependency is found. 2. In rte_metrics_telemetry.c

Re: [PATCH v2 1/8] lib/ethdev: update Rx and Tx queue status

2023-10-07 Thread Jie Hai
On 2023/9/28 21:15, Ferruh Yigit wrote: On 9/28/2023 8:42 AM, Jie Hai wrote: The DPDK framework reports the queue status, which is stored in 'dev->data->tx_queue_state' and 'dev->data->rx_queue_state'.The state is currently maintained by the drivers. Use

Re: [PATCH v7 0/3] add telemetry cmds for ring

2023-10-09 Thread Jie Hai
Hi, Thomas, Kindly ping for review. Thanks, Jie Hai On 2023/7/4 17:04, Jie Hai wrote: This patch set supports telemetry cmd to list rings and dump information of a ring by its name. v1->v2: 1. Add space after "switch". 2. Fix wrong strlen parameter. v2->v3: 1. Remove p

[PATCH v5 00/40] support setting and querying RSS algorithms

2023-10-11 Thread Jie Hai
of the "func" field. 3. modify commit log of patch [3/5]. 4. use malloc instead of rte_malloc. 5. adjust display format of RSS info. 6. remove the string display of rss_hf. Huisong Li (1): net/hns3: support setting and querying RSS hash function Jie Hai (39): ethdev: overwrite some c

[PATCH v5 01/40] ethdev: overwrite some comment related to RSS

2023-10-11 Thread Jie Hai
1. overwrite the comments of fields of 'rte_eth_rss_conf'. 2. Add comments for RTE_ETH_HASH_FUNCTION_DEFAULT. Signed-off-by: Jie Hai --- lib/ethdev/rte_ethdev.h | 29 ++--- lib/ethdev/rte_flow.h | 3 +++ 2 files changed, 17 insertions(+), 15 deletions(-) di

[PATCH v5 03/40] net/atlantic: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/atlantic/atl_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethd

[PATCH v5 04/40] net/axgbe: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/axgbe/axgbe_ethdev.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethd

[PATCH v5 02/40] ethdev: support setting and querying RSS algorithm

2023-10-11 Thread Jie Hai
_dev_configure. To check whether the drivers report valid "algorithm", it is set to default value before querying. Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- doc/guides/rel_notes/release_23_11.rst | 2 ++ lib/ethdev/rte_ethdev.c| 17 lib/ethd

[PATCH v5 05/40] net/bnx2x: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/bnx2x/bnx2x_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethd

[PATCH v5 06/40] net/bnxt: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/bnxt/bnxt_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethd

[PATCH v5 07/40] net/bonding: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/bonding/rte_eth_bond_pmd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/n

[PATCH v5 08/40] net/cnxk: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/cnxk/cnxk_ethdev.c | 5 + drivers/net/cnxk/cnxk_ethdev_ops.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/cnxk/cnx

[PATCH v5 10/40] net/cxgbe: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/cxgbe/cxgbe_ethdev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers

[PATCH v5 09/40] net/cpfl: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/cpfl/cpfl_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethd

[PATCH v5 11/40] net/dpaa: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/dpaa/dpaa_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethd

[PATCH v5 12/40] net/dpaa2: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/dpaa2/dpaa2_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethd

[PATCH v5 13/40] net/ena: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/ena/ena_rss.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ena/ena_rss.c b/drivers/net/ena/ena_rss.c index d0ba9d5c0a14..06

[PATCH v5 14/40] net/enic: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/enic/enic_ethdev.c | 1 + drivers/net/enic/enic_main.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/enic/enic_ethdev.c

[PATCH v5 15/40] net/fm10k: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/fm10k/fm10k_ethdev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers

[PATCH v5 16/40] net/hinic: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/hinic/hinic_pmd_ethdev.c | 3 +++ drivers/net/hinic/hinic_pmd_rx.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers

[PATCH v5 17/40] net/i40e: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/i40e/i40e_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethd

[PATCH v5 18/40] net/iavf: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/iavf/iavf_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethd

[PATCH v5 19/40] net/ice: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/ice/ice_dcf.c| 3 +++ drivers/net/ice/ice_dcf_ethdev.c | 3 +++ drivers/net/ice/ice_ethdev.c | 7 +++ 3 files changed, 13

[PATCH v5 20/40] net/idpf: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/idpf/idpf_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethd

[PATCH v5 21/40] net/igc: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/igc/igc_ethdev.c | 4 drivers/net/igc/igc_txrx.c | 5 + 2 files changed, 9 insertions(+) diff --git a/drivers/net/igc/igc_ethdev.c

[PATCH v5 22/40] net/ionic: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/ionic/ionic_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ionic/ionic_ethdev.c b/drivers/net/ionic/ionic_ethd

[PATCH v5 23/40] net/ixgbe: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/ixgbe/ixgbe_ethdev.c | 12 ++-- drivers/net/ixgbe/ixgbe_rxtx.c | 4 2 files changed, 14 insertions(+), 2 deletions(-) diff --git

[PATCH v5 24/40] net/mana: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/mana/mana.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/net/mana/mana.c b/drivers/net/mana/ma

[PATCH v5 26/40] net/mvpp2: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/mvpp2/mrvl_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethd

[PATCH v5 25/40] net/mlx5: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/mlx5/mlx5_ethdev.c | 4 drivers/net/mlx5/mlx5_rss.c| 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/driver

[PATCH v5 27/40] net/netvsc: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/netvsc/hn_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethd

[PATCH v5 28/40] net/ngbe: : check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/ngbe/ngbe_ethdev.c | 6 +- drivers/net/ngbe/ngbe_rxtx.c | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/driver

[PATCH v5 30/40] net/null: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/null/rte_eth_null.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_nu

[PATCH v5 31/40] net/qede: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/qede/qede_ethdev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/qede/qede_ethdev.c b/driver

[PATCH v5 29/40] net/nfp: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/nfp/nfp_common.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/nfp/nfp_common.c b/drivers/net/nfp/nf

[PATCH v5 32/40] net/sfc: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/sfc/sfc_ethdev.c | 3 +++ drivers/net/sfc/sfc_rx.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/sfc/sfc_ethdev.c b/d

[PATCH v5 33/40] net/tap: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/tap/rte_eth_tap.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_t

[PATCH v5 34/40] net/thunderx: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/thunderx/nicvf_ethdev.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/d

[PATCH v5 35/40] net/txgbe: check RSS hash algorithms

2023-10-11 Thread Jie Hai
A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/txgbe/txgbe_ethdev.c| 7 ++- drivers/net/txgbe/txgbe_ethdev_vf.c | 7 ++- drivers/net/txgbe/txgbe_rxtx.c | 3 +++ 3 files c

[PATCH v5 36/40] net/hns3: support setting and querying RSS hash function

2023-10-11 Thread Jie Hai
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/hns

[PATCH v5 37/40] app/proc-info: fix never show RSS info

2023-10-11 Thread Jie Hai
("app/procinfo: add --show-port") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu Acked-by: Reshma Pattan --- app/proc-info/main.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/ma

[PATCH v5 38/40] app/proc-info: adjust the display format of RSS info

2023-10-11 Thread Jie Hai
: 0x0 Fixes: 8a37f37fc243 ("app/procinfo: add --show-port") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu Acked-by: Reshma Pattan --- app/proc-info/main.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/proc-info/main.c b/app

[PATCH v5 39/40] app/proc-info: support querying RSS hash algorithm

2023-10-11 Thread 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 Acked-by: Reshma Pattan --- app/proc-info/main.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/app/proc-info

[PATCH v5 40/40] app/testpmd: add RSS hash algorithms display

2023-10-11 Thread Jie Hai
Add the command "show port X rss-hash algorithm" to display the RSS hash algorithms of port X. An example is shown: testpmd> show port 0 rss-hash algorithm RSS algorithms: toeplitz Signed-off-by: Jie Hai --- app/test-pmd/cmdline.c | 29 - app/test

Re: [PATCH v5 01/40] ethdev: overwrite some comment related to RSS

2023-10-11 Thread Jie Hai
On 2023/10/12 0:31, Ferruh Yigit wrote: On 10/11/2023 10:27 AM, Jie Hai wrote: 1. overwrite the comments of fields of 'rte_eth_rss_conf'. 2. Add comments for RTE_ETH_HASH_FUNCTION_DEFAULT. Signed-off-by: Jie Hai --- lib/ethdev/rte_ethdev.h | 29 ++---

Re: [PATCH v5 26/40] net/mvpp2: check RSS hash algorithms

2023-10-11 Thread Jie Hai
On 2023/10/12 2:00, Ferruh Yigit wrote: On 10/11/2023 10:27 AM, Jie Hai wrote: A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/mvpp2/mrvl_ethdev.c | 3 +++ 1 file changed, 3 insertion

Re: [PATCH v5 08/40] net/cnxk: check RSS hash algorithms

2023-10-11 Thread Jie Hai
On 2023/10/12 1:04, Ferruh Yigit wrote: On 10/11/2023 10:27 AM, Jie Hai wrote: A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/cnxk/cnxk_ethdev.c | 5 + drivers/net/cnxk/cnxk_et

Re: [PATCH v5 13/40] net/ena: check RSS hash algorithms

2023-10-11 Thread Jie Hai
On 2023/10/12 1:27, Ferruh Yigit wrote: On 10/11/2023 10:27 AM, Jie Hai wrote: A new field 'algorithm' has been added to rss_conf, check it in case of ignoring unsupported values. Signed-off-by: Jie Hai --- drivers/net/ena/ena_rss.c | 3 +++ 1 file changed, 3 insertions(+) di

Re: [PATCH v5 36/40] net/hns3: support setting and querying RSS hash function

2023-10-11 Thread Jie Hai
On 2023/10/12 10:23, fengchengwen wrote: The new algorithm (RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ_SORT) should treat as Not Support. With above fix Acked-by: Chengwen Feng Thanks, will check it. On 2023/10/11 17:28, Jie Hai wrote: From: Huisong Li Support setting and querying RSS

Re: [PATCH v5 36/40] net/hns3: support setting and querying RSS hash function

2023-10-11 Thread Jie Hai
ash_func >= RTE_DIM(hns3_hash_func_map)) { hns3_err(hw, "hash func (%u) is unsupported.", hash_func); return -ENOTSUP; } On 2023/10/11 17:28, Jie Hai wrote: From: Huisong Li Support setting and querying RSS hash function by ethdev ops. Sign

Re: [PATCH v5 38/40] app/proc-info: adjust the display format of RSS info

2023-10-11 Thread Jie Hai
On 2023/10/12 10:01, fengchengwen wrote: Hi HaiJie, On 2023/10/11 17:28, Jie Hai wrote: This patch splits the length and value of RSS key into two parts, removes spaces between RSS keys, and adds line breaks between RSS key and RSS hf. Before the adjustment, RSS info is shown as: - RSS

Re: [PATCH v5 39/40] app/proc-info: support querying RSS hash algorithm

2023-10-11 Thread Jie Hai
On 2023/10/12 10:05, fengchengwen wrote: Suggest add one new API for get hash_algo_name. e.g. rte_eth_get_rss_algo_name() Thanks, that's better for reuse, will change it in next version. On 2023/10/11 17:28, Jie Hai wrote: Display RSS hash algorithm with command show-port as below.

[PATCH 1/4] net/hns3: fix a typo

2023-10-17 Thread Jie Hai
This patch fixes a typo. Fixes: c09c7847d892 ("net/hns3: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Jie Hai --- drivers/net/hns3/hns3_tm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_tm.c b/drivers/net/hns3/hns3_

[PATCH 0/4] add telemetry commands for TM capabilities

2023-10-17 Thread Jie Hai
This patch adds telemetry commands for TM capabilities and make some bufix for hns3 driver. Jie Hai (4): net/hns3: fix a typo ethdev: add telemetry command for TM capabilities ethdev: add telemetry command for TM level capabilities ethdev: add telemetry command for TM node capabilities

[PATCH 2/4] ethdev: add telemetry command for TM capabilities

2023-10-17 Thread Jie Hai
, "cman_wred_packet_mode_supported": 0, "cman_wred_byte_mode_supported": 0, "cman_head_drop_supported": 0, "cman_wred_context_n_max": 0, "cman_wred_context_private_n_max": 0, "cman_wred_context_shared_n_max": 0, &qu

[PATCH 3/4] ethdev: add telemetry command for TM level capabilities

2023-10-17 Thread Jie Hai
private_rate_min": 0, "shaper_private_rate_max": 250, "shaper_private_packet_mode_supported": 0, "shaper_private_byte_mode_supported": 0, "shaper_shared_n_max": 0, "shaper_shared_packet_mode_supported"

[PATCH 4/4] ethdev: add telemetry command for TM node capabilities

2023-10-17 Thread Jie Hai
dren_per_group_max": 0, "sched_wfq_n_groups_max": 0, "sched_wfq_weight_max": 1, "sched_wfq_packet_mode_supported": 0, "sched_wfq_byte_mode_supported": 0 } } Signed-off-by: Jie Hai --- lib/ethdev/rte_ethdev_telemetry.c | 104 +++

Re: [PATCH v5 02/40] ethdev: support setting and querying RSS algorithm

2023-10-24 Thread Jie Hai
On 2023/10/12 10:21, fengchengwen wrote: On 2023/10/12 1:39, Stephen Hemminger wrote: On Wed, 11 Oct 2023 17:27:27 +0800 Jie Hai wrote: Currently, rte_eth_rss_conf supports configuring and querying RSS hash functions, rss key and it's length, but not RSS hash algorithm. The stru

Re: [PATCH v7 0/3] add telemetry cmds for ring

2023-10-24 Thread Jie Hai
Hi, Thomas, Kindly ping for review. Thanks, Jie Hai On 2023/7/4 17:04, Jie Hai wrote: This patch set supports telemetry cmd to list rings and dump information of a ring by its name. v1->v2: 1. Add space after "switch". 2. Fix wrong strlen parameter. v2->v3: 1. Remove p

Re: [PATCH 0/4] add telemetry commands for TM capabilities

2023-10-24 Thread Jie Hai
Hi, all maintainers, Kindly ping for review. Thanks, Jie Hai On 2023/10/18 9:39, Jie Hai wrote: This patch adds telemetry commands for TM capabilities and make some bufix for hns3 driver. Jie Hai (4): net/hns3: fix a typo ethdev: add telemetry command for TM capabilities ethdev: add

[PATCH] app/testpmd: fix testpmd receive jumbo frame packets

2022-10-24 Thread Jie Wang
c908cc588 ("app/testpmd: request device removal interrupt") Cc: sta...@dpdk.org Signed-off-by: Jie Wang --- app/test-pmd/testpmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 97adafacd0..c348a3f328

[PATCH 0/2] add ring telemetry cmds

2023-01-17 Thread Jie Hai
This patch set supports telemetry list rings and dump info of a ring by its name. Jie Hai (2): ring: add ring list telemetry cmd ring: add ring info telemetry cmd lib/ring/meson.build | 1 + lib/ring/rte_ring.c | 128 +++ 2 files changed, 129

[PATCH 1/2] ring: add ring list telemetry cmd

2023-01-17 Thread Jie Hai
This patch supports the list of rings with telemetry cmd. An example using this command is shown below: --> /ring/list { "/ring/list": [ "HT_:7d:00.2", "MP_mb_pool_0" ] } Signed-off-by: Jie Hai --- lib/ring/meson.build

[PATCH 2/2] ring: add ring info telemetry cmd

2023-01-17 Thread Jie Hai
55456, "producer_head": 155456, "mz_name": "RG_MP_mb_pool_0", "mz_len": 2097920, "mz_hugepage_sz": 1073741824, "mz_socket_id": 0, "mz_flags": 0 } } Signed-off-by: Jie Hai --- lib/ring/rte_ring.c

[PATCH v2 0/2] add ring telemetry cmds

2023-01-17 Thread Jie Hai
This patch set supports telemetry list rings and dump ring info by its name. Jie Hai (2): ring: add ring list telemetry cmd ring: add ring info telemetry cmd lib/ring/meson.build | 1 + lib/ring/rte_ring.c | 128 +++ 2 files changed, 129 insertions

[PATCH v2 1/2] ring: add ring list telemetry cmd

2023-01-17 Thread Jie Hai
This patch supports the list of rings with telemetry cmd. An example using this command is shown below: --> /ring/list { "/ring/list": [ "HT_:7d:00.2", "MP_mb_pool_0" ] } Signed-off-by: Jie Hai --- lib/ring/meson.build

[PATCH v2 2/2] ring: add ring info telemetry cmd

2023-01-17 Thread Jie Hai
55456, "producer_head": 155456, "mz_name": "RG_MP_mb_pool_0", "mz_len": 2097920, "mz_hugepage_sz": 1073741824, "mz_socket_id": 0, "mz_flags": 0 } } Signed-off-by: Jie Hai --- lib/ring/rte_ring.c

[PATCH v3 0/2] add ring telemetry cmds

2023-01-30 Thread Jie Hai
unctions to return strings instead copy strings. 4. Check pointer to memzone of ring. 5. Remove redundant variable. 6. Hold lock when access ring data. Jie Hai (2): ring: add ring list telemetry cmd ring: add ring info telemetry cmd lib/ring/meson.build | 1 +

[PATCH v3 1/2] ring: add ring list telemetry cmd

2023-01-30 Thread Jie Hai
This patch supports the list of rings with telemetry cmd. An example using this command is shown below: --> /ring/list { "/ring/list": [ "HT_:7d:00.2", "MP_mb_pool_0" ] } Signed-off-by: Jie Hai Acked-by: Konstantin Ananyev --- lib/ring/meson.

[PATCH v3 2/2] ring: add ring info telemetry cmd

2023-01-30 Thread Jie Hai
55456, "producer_head": 155456, "mz_name": "RG_MP_mb_pool_0", "mz_len": 2097920, "mz_hugepage_sz": 1073741824, "mz_socket_id": 0, "mz_flags": 0 } } Signed-off-by: Jie Hai --- lib/ring/rte_ring.c

[PATCH] test/mbuf: fix mbuf_autotest retest fail

2023-01-30 Thread Jie Hai
Retest "mbuf_autotest" will fail because the mbuf pool was not freed after previous test successful done. This patch fixes it. Fixes: efc6f9104c80 ("mbuf: fix reset on mbuf free") Cc: sta...@dpdk.org Signed-off-by: Jie Hai --- app/test/test_mbuf.c | 1 + 1 file changed,

[PATCH] examples/l3fwd-power: support CPPC cpufreq

2023-01-30 Thread Jie Hai
Currently the l3fwd-power only supports ACPI cpufreq and Pstate cpufreq, This patch adds CPPC cpufreq. Signed-off-by: Jie Hai --- examples/l3fwd-power/main.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c

Re: [PATCH v2 1/2] ring: add ring list telemetry cmd

2023-01-30 Thread Jie Hai
On 2023/1/23 0:40, Konstantin Ananyev wrote: Hi Jie, This patch supports the list of rings with telemetry cmd. An example using this command is shown below: --> /ring/list {    "/ring/list": [ "HT_:7d:00.2", "MP_mb_pool_0"    ] } Signe

Re: [PATCH v2 2/2] ring: add ring info telemetry cmd

2023-01-30 Thread Jie Hai
Hi, Konstantin, Thanks for your review. All accepted and fixed in v3. Jie Hai On 2023/1/23 1:49, Konstantin Ananyev wrote: This patch supports dump of the info of ring by its name. An example using this command is shown below: --> /ring/info,MP_mb_pool_0 {    "/ring/info":

Re: [PATCH v3 2/2] ring: add ring info telemetry cmd

2023-02-02 Thread Jie Hai
On 2023/2/1 0:44, Honnappa Nagarahalli wrote: Few minor nits. Otherwise, Reviewed-by: Honnappa Nagarahalli Thanks for your review. -Original Message- From: Jie Hai Sent: Monday, January 30, 2023 8:29 PM To: Honnappa Nagarahalli ; konstantin.v.anan...@yandex.ru; dev@dpdk.org Cc

Re: [PATCH v3 1/2] ring: add ring list telemetry cmd

2023-02-02 Thread Jie Hai
On 2023/2/1 0:44, Honnappa Nagarahalli wrote: Few minor comments inline. Otherwise, Reviewed-by: Honnappa Nagarahalli Thanks for your review. -Original Message- From: Jie Hai Sent: Monday, January 30, 2023 8:29 PM To: Honnappa Nagarahalli ; konstantin.v.anan...@yandex.ru; dev

Re: [PATCH v3 2/2] ring: add ring info telemetry cmd

2023-02-02 Thread Jie Hai
On 2023/2/2 21:07, Konstantin Ananyev wrote: 31/01/2023 02:28, Jie Hai пишет: This patch supports dump of the info of ring by its name. An example using this command is shown below: --> /ring/info,MP_mb_pool_0 {    "/ring/info": { "name": "MP_mb_pool_0",

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

2023-08-31 Thread Jie Hai
On 2023/8/31 8:10, Ajit Khaparde wrote: On Wed, Aug 30, 2023 at 4:46 AM Thomas Monjalon wrote: Hello, Thanks for bringing a new capability. 26/08/2023 09:46, Jie Hai: Currently, rte_eth_rss_conf supports configuring and querying rss hash functions, rss key and it's length, but not rss

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

2023-09-03 Thread Jie Hai
if "func" is invalid. 2. modify the comments of the "func" field. 3. modify commit log of patch [3/5]. 4. use malloc instead of rte_malloc. 5. adjust display format of RSS info. 6. remove the string display of rss_hf. -- Jie Hai (5): app/proc-info: fix never show RSS info a

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

2023-09-03 Thread Jie Hai
rss_conf.rss_key and makes it possible to show RSS info. Fixes: 8a37f37fc243 ("app/procinfo: add --show-port") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff -

[PATCH v3 2/5] app/proc-info: adjust the display format of RSS info

2023-09-03 Thread Jie Hai
: 8a37f37fc243 ("app/procinfo: add --show-port") Cc: sta...@dpdk.org Signed-off-by: Jie Hai --- app/proc-info/main.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index f6b77a705dce..6d2d77fea6ba 100644 --- a/app

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

2023-09-03 Thread 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/main.c b/app/proc

[PATCH v3 4/5] app/testpmd: add RSS hash algorithms display

2023-09-03 Thread Jie Hai
1. Add the command "show port X rss-hash func" to display the RSS hash algorithms of port X. 2. Add the command "show port X rss-hash all" to display the RSS hash configuration of port X, including RSS hash types, key and algorithms. Signed-off-by: Jie Hai --- app/tes

[PATCH v3 5/5] app/testpmd: add RSS hash algorithms setting

2023-09-03 Thread Jie Hai
Add command "port config rss-hash-func " to set RSS hash algorithms. Signed-off-by: Jie Hai --- app/test-pmd/cmdline.c | 78 -- app/test-pmd/config.c | 16 - app/test-pmd/testpmd.h | 3 +- 3 files changed, 84 insertions(+), 13

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

2023-09-03 Thread Jie Hai
On 2023/8/31 8:10, Ajit Khaparde wrote: On Wed, Aug 30, 2023 at 4:46 AM Thomas Monjalon wrote: Hello, Thanks for bringing a new capability. 26/08/2023 09:46, Jie Hai: Currently, rte_eth_rss_conf supports configuring and querying rss hash functions, rss key and it's length, but not rss

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

2023-09-04 Thread Jie Hai
Hi, Thomas Thanks for your review. On 2023/8/30 19:46, Thomas Monjalon wrote: Hello, Thanks for bringing a new capability. 26/08/2023 09:46, Jie Hai: Currently, rte_eth_rss_conf supports configuring and querying rss hash functions, rss key and it's length, but not rss hash algorithm.

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

2023-09-04 Thread Jie Hai
rss_conf.rss_key and makes it possible to show RSS info. Fixes: 8a37f37fc243 ("app/procinfo: add --show-port") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff -

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

2023-09-04 Thread 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/main.c b/app/proc

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

2023-09-04 Thread Jie Hai
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/hns

[PATCH 4/5] app/proc-info: adjust the display format of RSS info

2023-09-04 Thread Jie Hai
: 8a37f37fc243 ("app/procinfo: add --show-port") Cc: sta...@dpdk.org Signed-off-by: Jie Hai --- app/proc-info/main.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index f6b77a705dce..6d2d77fea6ba 100644 --- a/app

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

2023-09-04 Thread Jie Hai
if "func" is invalid. 2. modify the comments of the "func" field. 3. modify commit log of patch [3/5]. 4. use malloc instead of rte_malloc. 5. adjust display format of RSS info. 6. remove the string display of rss_hf. -- Huisong Li (1): net/hns3: support setting and querying RS

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

2023-09-04 Thread Jie Hai
re. 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_11.rst | 2 ++ lib/ethdev/rte_ethdev.c| 17 + lib/ethd

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

2023-09-04 Thread Jie Hai
Hi, ALL Sorry, please drop this patchset. Here is V3 https://inbox.dpdk.org/dev/20230904072851.7384-1-haij...@huawei.com/ Thanks, Jie Hai On 2023/9/4 14:10, Jie Hai wrote: This patchset is to support setting and querying RSS algorithms. -- v3: 1. fix commit log for PATCH [1/5]. 2. make RSS

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

2023-09-08 Thread Jie Hai
]; And then do below ? rss_conf.rss_key = hash_key; . Thanks for your review, will fix it in next version. Thanks, Jie Hai

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

2023-09-08 Thread Jie Hai
rss_func_to_str(rss_conf.func)); } And then print as below ? printf("\t -- hash algorithm : %s\n", hf_names [rss_conf.func]); . Thanks for your review, that sounds better, will fix it. Thanks, Jie Hai

[PATCH v4 0/7] support setting and querying RSS algorithms

2023-09-08 Thread Jie Hai
3. modify commit log of patch [3/5]. 4. use malloc instead of rte_malloc. 5. adjust display format of RSS info. 6. remove the string display of rss_hf. Huisong Li (1): net/hns3: support setting and querying RSS hash function Jie Hai (6): ethdev: recomment some definitions related to RSS eth

[PATCH v4 1/7] ethdev: recomment some definitions related to RSS

2023-09-08 Thread Jie Hai
1. Recomment fields of 'rte_eth_rss_conf'. 2. Add comments for RTE_ETH_HASH_FUNCTION_DEFAULT. Signed-off-by: Jie Hai --- lib/ethdev/rte_ethdev.h | 28 +--- lib/ethdev/rte_flow.h | 4 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/

[PATCH v4 2/7] ethdev: support setting and querying RSS algorithm

2023-09-08 Thread Jie Hai
re. 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_11.rst | 2 ++ lib/ethdev/rte_ethdev.c| 17 + lib/ethd

[PATCH v4 3/7] net/hns3: support setting and querying RSS hash function

2023-09-08 Thread Jie Hai
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/hns

[PATCH v4 4/7] app/proc-info: fix never show RSS info

2023-09-08 Thread Jie Hai
rss_conf.rss_key and makes it possible to show RSS info. Fixes: 8a37f37fc243 ("app/procinfo: add --show-port") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >