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
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
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
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
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
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
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
_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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
("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
: 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
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
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
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 ++---
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
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
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
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
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
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
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.
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_
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
,
"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
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"
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 +++
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
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
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
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
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
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
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
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
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
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
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 +
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.
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
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,
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
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
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":
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
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
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",
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
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
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 -
: 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
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
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
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
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
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.
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 -
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
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
: 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
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
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
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
];
And then do below ?
rss_conf.rss_key = hash_key;
.
Thanks for your review, will fix it in next version.
Thanks,
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
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
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/
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
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
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 - 100 of 1303 matches
Mail list logo