[PATCH] app/testpmd: fix fail to set queue number when attach device

2025-02-18 Thread Huisong Li
be in new event callback as discussed in following commit. So this patch moves setup_attached_port() to the time point 100ms after received the new event. Bugzilla ID: 1663 Fixes: 994635edb2c0 ("app/testpmd: add port attach/detach for multiple process") Signed-off-by: Huisong Li ---

[PATCH v8] app/testpmd: add attach and detach port for multiple process

2025-01-19 Thread Huisong Li
state is changed from 'ATTACHED' to 'UNUSED' only after the event callback finished. But the remove_invalid_ports() function removes invalid port only if ethdev state is 'UNUSED'. If we don't add alarm callback, this detached port information can not be remo

[PATCH v3 2/2] ethdev: fix some functions are available in the new event

2025-01-17 Thread Huisong Li
ntrol APIs") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Thomas Monjalon --- lib/ethdev/rte_ethdev.c | 14 +++--- lib/ethdev/rte_ethdev.h | 3 ++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index 64

[PATCH v3 0/2] ethdev: clarify something about new event

2025-01-17 Thread Huisong Li
703-1-lihuis...@huawei.com/ --- -v3: - add "the" before application as Thomas suggested. - add Acked-by Thomas Monjalon -v2: fix some descriptions as Thomas suggested. Huisong Li (2): ethdev: clarify something about the new event ethdev: fix some functions are available i

[PATCH v3 1/2] ethdev: clarify something about the new event

2025-01-17 Thread Huisong Li
If application verify the validity of the port id or configure this port in the new event callback, application may happen to the port id is invalid. In case of similar confusion, this patch have to clarify something about RTE_ETH_EVENT_NEW in code. Signed-off-by: Huisong Li Acked-by: Thomas

[PATCH v2 2/2] ethdev: fix some functions are available in the new event

2025-01-16 Thread Huisong Li
ntrol APIs") Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- lib/ethdev/rte_ethdev.c | 14 +++--- lib/ethdev/rte_ethdev.h | 3 ++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index 6413c54e3b..9cfb397cee 100

[PATCH v2 1/2] ethdev: clarify something about the new event

2025-01-16 Thread Huisong Li
If application verify the validity of the port id or configure this port in the new event callback, application may happen to the port id is invalid. In case of similar confusion, this patch have to clarify something about RTE_ETH_EVENT_NEW in code. Signed-off-by: Huisong Li --- lib/ethdev

[PATCH v2 0/2] ethdev: clarify something about new event

2025-01-16 Thread Huisong Li
703-1-lihuis...@huawei.com/ --- -v2: fix some descriptions as Thomas suggested. Huisong Li (2): ethdev: clarify something about the new event ethdev: fix some functions are available in the new event lib/ethdev/rte_ethdev.c | 14 +++--- lib/ethdev/rte_ethdev.h | 7 ++- 2

[PATCH v1 0/2] ethdev: clarify something about new event

2025-01-14 Thread Huisong Li
703-1-lihuis...@huawei.com/ Huisong Li (2): ethdev: clarify do not something in the new event ethdev: fix some APIs can be used in the new event lib/ethdev/rte_ethdev.c | 14 +++--- lib/ethdev/rte_ethdev.h | 9 - 2 files changed, 19 insertions(+), 4 deletions(-) -- 2.22.0

[PATCH v1 1/2] ethdev: clarify do not something in the new event

2025-01-14 Thread Huisong Li
need to verify the validity of the port id because it is definitely valid. What's more, application shouldn't do something like configuring this port or querying some information of this port by ethdev ops. Signed-off-by: Huisong Li --- lib/ethdev/rte_ethdev.h | 9 - 1

[PATCH v1 2/2] ethdev: fix some APIs can be used in the new event

2025-01-14 Thread Huisong Li
ntrol APIs") Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- lib/ethdev/rte_ethdev.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index 6413c54e3b..9cfb397cee 100644 --- a/lib/ethdev/rte_ethde

[PATCH v1 0/2] ethdev: fix skip valid port in probing callback

2025-01-12 Thread Huisong Li
lows: --- testpmd> testpmd> port attach :7d:00.1 Attaching a new port... Port 1 is attached. Now total ports is 2 Done --- BTW, the modification method for this issue is from the following thread. https://mails.dpdk.org/archives/dev/2024-January/286026.html Huisong Li (2): app/testpmd: check t

[PATCH v1 2/2] ethdev: fix skip valid port in probing callback

2025-01-12 Thread Huisong Li
be8cd210379a ("ethdev: fix port probing notification") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Chengwen Feng --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- drivers/net/cpfl/cpfl_ethdev.h | 2 +- drivers/net/ionic/ionic_ethdev.c | 2 +- drivers/net/mlx5/mlx5.c

[PATCH v1 1/2] app/testpmd: check the validity of the port

2025-01-12 Thread Huisong Li
This patch checks the validity of port id for all events in 'eth_event_callback()'. Signed-off-by: Huisong Li Acked-by: Aman Singh Acked-by: Chengwen Feng --- app/test-pmd/testpmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/ap

[PATCH] power: use hugepage memory for queue list entry structure

2024-12-19 Thread Huisong Li
The queue_list_entry structure data is used in rx_callback of io path when enable PMD Power Management. However its memory is currently from normal heap memory. For better performance, use hugepage memory to replace it. Signed-off-by: Huisong Li --- lib/power/rte_power_pmd_mgmt.c | 10

[PATCH v3] power: fix a typo in the PM QoS guide

2024-11-12 Thread Huisong Li
The typo in the guide is hard to understand. Necessary to fix it. Fixes: dd6fd75bf662 ("power: introduce PM QoS API on CPU wide") Signed-off-by: Huisong Li --- doc/guides/prog_guide/power_man.rst | 2 +- lib/power/rte_power_qos.h | 4 ++-- 2 files changed, 3 insert

[PATCH v2] power: fix a typo in the PM QoS guide

2024-11-12 Thread Huisong Li
The typo in the guide is hard to understand. Necessary to fix it. Fixes: dd6fd75bf662 ("power: introduce PM QoS API on CPU wide") Signed-off-by: Huisong Li --- doc/guides/prog_guide/power_man.rst | 2 +- lib/power/rte_power_qos.h | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH] power: fix a typo in the PM QoS guide

2024-11-11 Thread Huisong Li
The typo in the guide is hard to understand. Necessary to fix it. Fixes: dd6fd75bf662 ("power: introduce PM QoS API on CPU wide") Signed-off-by: Huisong Li --- doc/guides/prog_guide/power_man.rst | 2 +- lib/power/rte_power_qos.h | 2 +- 2 files changed, 2 insertions(+), 2

[RESEND PATCH v15 2/3] examples/l3fwd-power: fix data overflow when parse command line

2024-11-11 Thread Huisong Li
uot;) Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Sivaprasad Tummala --- examples/l3fwd-power/main.c | 41 +++-- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/examples/l3fwd-po

[RESEND PATCH v15 1/3] power: introduce PM QoS API on CPU wide

2024-11-11 Thread Huisong Li
shallowest idle state to low the delay when wake up from by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng Acked-by: Konstantin Ananyev Acked-by: Sivaprasad Tummala --- doc/guides/prog_guide/power_man.rst| 19 +

[RESEND PATCH v15 3/3] examples/l3fwd-power: add PM QoS configuration

2024-11-11 Thread Huisong Li
The '--cpu-resume-latency' can use to control C-state selection. Setting the CPU resume latency to 0 can limit the CPU just to enter C0-state to improve performance, which also may increase the power consumption of platform. Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by

[RESEND PATCH v15 0/3] power: introduce PM QoS interface

2024-11-11 Thread Huisong Li
macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (3): power: introduce PM QoS API on CPU wide examples/l3fwd-power: fix data overflow when parse command line examples/l3fwd-power: add PM Qo

[PATCH v15 3/3] examples/l3fwd-power: add PM QoS configuration

2024-11-10 Thread Huisong Li
The '--cpu-resume-latency' can use to control C-state selection. Setting the CPU resume latency to 0 can limit the CPU just to enter C0-state to improve performance, which also may increase the power consumption of platform. Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by

[PATCH v15 1/3] power: introduce PM QoS API on CPU wide

2024-11-10 Thread Huisong Li
shallowest idle state to low the delay when wake up from by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng Acked-by: Konstantin Ananyev Acked-by: Sivaprasad Tummala --- doc/guides/prog_guide/power_man.rst| 19 +

[PATCH v15 2/3] examples/l3fwd-power: fix data overflow when parse command line

2024-11-10 Thread Huisong Li
uot;) Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Sivaprasad Tummala --- examples/l3fwd-power/main.c | 41 +++-- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/examples/l3fwd-po

[PATCH v15 0/3] power: introduce PM QoS interface

2024-11-10 Thread Huisong Li
macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (3): power: introduce PM QoS API on CPU wide examples/l3fwd-power: fix data overflow when parse command line examples/l3fwd-power: add PM Qo

[PATCH v14 3/3] examples/l3fwd-power: add PM QoS configuration

2024-10-29 Thread Huisong Li
The '--cpu-resume-latency' can use to control C-state selection. Setting the CPU resume latency to 0 can limit the CPU just to enter C0-state to improve performance, which also may increase the power consumption of platform. Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by

[PATCH v14 1/3] power: introduce PM QoS API on CPU wide

2024-10-29 Thread Huisong Li
shallowest idle state to low the delay when wake up from by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng Acked-by: Konstantin Ananyev Acked-by: Sivaprasad Tummala --- doc/guides/prog_guide/power_man.rst| 19 +

[PATCH v14 2/3] examples/l3fwd-power: fix data overflow when parse command line

2024-10-29 Thread Huisong Li
uot;) Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Sivaprasad Tummala --- examples/l3fwd-power/main.c | 41 +++-- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/examples/l3fwd-po

[PATCH v14 0/3] power: introduce PM QoS interface

2024-10-29 Thread Huisong Li
on system wide Huisong Li (3): power: introduce PM QoS API on CPU wide examples/l3fwd-power: fix data overflow when parse command line examples/l3fwd-power: add PM QoS configuration doc/guides/prog_guide/power_man.rst | 19 +++ doc/guides/rel_notes/release_24_11.rst| 5 + ..

[PATCH v13 1/3] power: introduce PM QoS API on CPU wide

2024-10-25 Thread Huisong Li
shallowest idle state to low the delay when wake up from by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng Acked-by: Konstantin Ananyev --- doc/guides/prog_guide/power_man.rst| 19 doc/guides/rel_notes/release_

[PATCH v13 3/3] examples/l3fwd-power: add PM QoS configuration

2024-10-25 Thread Huisong Li
The '--cpu-resume-latency' can use to control C-state selection. Setting the CPU resume latency to 0 can limit the CPU just to enter C0-state to improve performance, which also may increase the power consumption of platform. Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by

[PATCH v13 0/3] power: introduce PM QoS interface

2024-10-25 Thread Huisong Li
e - add Acked-by Morten Brørup v3: - add RTE_POWER_xxx prefix for some macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (3): power: introduce PM QoS API on CPU wide examples/l3fwd-power: fi

[PATCH v13 2/3] examples/l3fwd-power: fix data overflow when parse command line

2024-10-25 Thread Huisong Li
uot;) Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Konstantin Ananyev --- examples/l3fwd-power/main.c | 36 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 2bb6b092c3

[PATCH v12 0/3] power: introduce PM QoS interface

2024-10-22 Thread Huisong Li
r lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (3): power: introduce PM QoS API on CPU wide examples/l3fwd-power: fix data overflow when parse command line examples/l3fwd-power: add PM QoS configuration doc/guides/prog_guid

[PATCH v12 2/3] examples/l3fwd-power: fix data overflow when parse command line

2024-10-22 Thread Huisong Li
uot;) Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- examples/l3fwd-power/main.c | 36 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 2bb6b092c3..0ce4aa04d4 100644 --- a/ex

[PATCH v12 3/3] examples/l3fwd-power: add PM QoS configuration

2024-10-22 Thread Huisong Li
The '--cpu-resume-latency' can use to control C-state selection. Setting the CPU resume latency to 0 can limit the CPU just to enter C0-state to improve performance, which also may increase the power consumption of platform. Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by

[PATCH v12 1/3] power: introduce PM QoS API on CPU wide

2024-10-22 Thread Huisong Li
shallowest idle state to low the delay when wake up from by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng Acked-by: Konstantin Ananyev --- doc/guides/prog_guide/power_man.rst| 19 doc/guides/rel_notes/release_

[PATCH v11 0/2] power: introduce PM QoS interface

2024-10-21 Thread Huisong Li
- add stdint.h include - add Acked-by Morten Brørup v3: - add RTE_POWER_xxx prefix for some macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (2): power: introduce PM QoS API on CPU wide examp

[PATCH v11 2/2] examples/l3fwd-power: add PM QoS configuration

2024-10-21 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 24 1 file changed, 24 insertions(+) diff --git a/examples/l3fwd-power/main.c b

[PATCH v11 1/2] power: introduce PM QoS API on CPU wide

2024-10-21 Thread Huisong Li
shallowest idle state to low the delay when wake up from by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup --- doc/guides/prog_guide/power_man.rst| 19 doc/guides/rel_notes/release_24_11.rst | 5 + lib/power/meson.build

[PATCH RESEND v7 4/5] app/testpmd: add attach and detach port for multiple process

2024-09-28 Thread Huisong Li
state is changed from 'ATTACHED' to 'UNUSED' only after the event callback finished. But the remove_invalid_ports() function removes invalid port only if ethdev state is 'UNUSED'. If we don't add alarm callback, this detached port information can not be removed. Sign

[PATCH RESEND v7 5/5] app/testpmd: stop forwarding in new or destroy event

2024-09-28 Thread Huisong Li
When testpmd receives the new or destroy event, the port related information will be updated. Testpmd must stop packet forwarding before updating the information to avoid some serious problems. Signed-off-by: Huisong Li Acked-by: Chengwen Feng --- app/test-pmd/testpmd.c | 4 1 file

[PATCH RESEND v7 3/5] app/testpmd: check the validity of the port

2024-09-28 Thread Huisong Li
This patch checks the validity of port id for all events in 'eth_event_callback()'. Signed-off-by: Huisong Li Acked-by: Aman Singh Acked-by: Chengwen Feng --- app/test-pmd/testpmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/ap

[PATCH RESEND v7 2/5] ethdev: fix skip valid port in probing callback

2024-09-28 Thread Huisong Li
be8cd210379a ("ethdev: fix port probing notification") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Chengwen Feng --- drivers/net/bnxt/bnxt_ethdev.c | 3 ++- drivers/net/mlx5/mlx5.c| 2 +- lib/ethdev/ethdev_driver.c | 13 ++--- lib/ethdev/ethdev_drive

[PATCH RESEND v7 1/5] drivers/bus: restore driver assignment at front of probing

2024-09-28 Thread Huisong Li
need to be updated if we do that. The driver pointer in rte_device is set before probing and needs to be reset if probing failed. And rte_dev_is_probed can not be called inside probing. Fixes: 391797f04208 ("drivers/bus: move driver assignment to end of probing") Cc: sta...@dpdk.org Si

[PATCH RESEND v7 0/5] app/testpmd: support multiple process attach and detach port

2024-09-28 Thread Huisong Li
i break. -v4: fix a misspelling. -v3: #1 merge patch 1/6 and patch 2/6 into patch 1/5, and add modification for other bus type. #2 add a RTE_ETH_DEV_ALLOCATED state in rte_eth_dev_state to resolve the probelm in patch 2/5. -v2: resend due to CI unexplained failure. Huisong L

[PATCH v10 2/2] examples/l3fwd-power: add PM QoS configuration

2024-09-11 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 24 1 file changed, 24 insertions(+) diff --git a/examples/l3fwd-power/main.c b

[PATCH v10 1/2] power: introduce PM QoS API on CPU wide

2024-09-11 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup --- doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_11.rst | 5 ++ lib/power/meson.build |

[PATCH v10 0/2] power: introduce PM QoS interface

2024-09-11 Thread Huisong Li
d the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (2): power: introduce PM QoS API on CPU wide examples/l3fwd-power: add PM QoS configuration doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/re

[PATCH v9 1/2] power: introduce PM QoS API on CPU wide

2024-08-09 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup --- doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_11.rst | 5 ++ lib/power/meson.build |

[PATCH v9 0/2] power: introduce PM QoS interface

2024-08-09 Thread Huisong Li
on CPU wide to replace the one on system wide Huisong Li (2): power: introduce PM QoS API on CPU wide examples/l3fwd-power: add PM QoS configuration doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_11.rst | 5 ++ examples/l3fwd-power/main.c|

[PATCH v9 2/2] examples/l3fwd-power: add PM QoS configuration

2024-08-09 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 24 1 file changed, 24 insertions(+) diff --git a/examples/l3fwd-power/main.c b

[PATCH v8 0/2] power: introduce PM QoS interface

2024-07-09 Thread Huisong Li
omments basd on Stephen - add stdint.h include - add Acked-by Morten Brørup v3: - add RTE_POWER_xxx prefix for some macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (2): power: introduce PM

[PATCH v8 1/2] power: introduce PM QoS API on CPU wide

2024-07-09 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup --- doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_07.rst | 4 + lib/power/meson.build |

[PATCH v8 2/2] examples/l3fwd-power: add PM QoS configuration

2024-07-09 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 24 1 file changed, 24 insertions(+) diff --git a/examples/l3fwd-power/main.c b

[PATCH v7 1/2] power: introduce PM QoS API on CPU wide

2024-07-08 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup --- doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_07.rst | 4 + lib/power/meson.build |

[PATCH v7 2/2] examples/l3fwd-power: add PM QoS configuration

2024-07-08 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 24 1 file changed, 24 insertions(+) diff --git a/examples/l3fwd-power/main.c b

[PATCH v7 0/2] power: introduce PM QoS interface

2024-07-08 Thread Huisong Li
- add Acked-by Morten Brørup v3: - add RTE_POWER_xxx prefix for some macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (2): power: introduce PM QoS API on CPU wide examples/l3fwd-power: add PM Qo

[PATCH v6 1/2] power: introduce PM QoS API on CPU wide

2024-07-08 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup --- doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_07.rst | 4 + lib/power/meson.build |

[PATCH v6 2/2] examples/l3fwd-power: add PM QoS configuration

2024-07-08 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 28 1 file changed, 28 insertions(+) diff --git a/examples/l3fwd-power/main.c b

[PATCH v6 0/2] power: introduce PM QoS interface

2024-07-08 Thread Huisong Li
r some macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (2): power: introduce PM QoS API on CPU wide examples/l3fwd-power: add PM QoS configuration doc/guides/prog_guide/power_man.rst|

[PATCH v5 2/2] examples/l3fwd-power: add PM QoS configuration

2024-07-01 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 28 1 file changed, 28 insertions(+) diff --git a/examples/l3fwd-power/main.c b

[PATCH v5 1/2] power: introduce PM QoS API on CPU wide

2024-07-01 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup --- doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_07.rst | 4 + lib/power/meson.build |

[PATCH v5 0/2] power: introduce PM QoS interface

2024-07-01 Thread Huisong Li
ed v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (2): power: introduce PM QoS API on CPU wide examples/l3fwd-power: add PM QoS configuration doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_07.rst | 4 + examples/l3f

[PATCH v4 2/2] examples/l3fwd-power: add PM QoS configuration

2024-06-26 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 28 1 file changed, 28 insertions(+) diff --git a/examples/l3fwd-power/main.c b

[PATCH v4 0/2] power: introduce PM QoS interface

2024-06-26 Thread Huisong Li
ncy-us --- v4: - fix some comments basd on Stephen - add stdint.h include - add Acked-by Morten Brørup v3: - add RTE_POWER_xxx prefix for some macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong

[PATCH v4 1/2] power: introduce PM QoS API on CPU wide

2024-06-26 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li Acked-by: Morten Brørup --- doc/guides/prog_guide/power_man.rst| 24 ++ doc/guides/rel_notes/release_24_07.rst | 4 + lib/power/meson.build |

[PATCH v3 1/2] power: introduce PM QoS API on CPU wide

2024-06-18 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li --- doc/guides/prog_guide/power_man.rst| 22 + doc/guides/rel_notes/release_24_07.rst | 4 + lib/power/meson.build | 2 + lib/power/

[PATCH v3 0/2] power: introduce PM QoS interface

2024-06-18 Thread Huisong Li
ncy-us --- v3: - add RTE_POWER_xxx prefix for some macro in header - add the check for lcore_id with rte_lcore_is_enabled v2: - use PM QoS on CPU wide to replace the one on system wide Huisong Li (2): power: introduce PM QoS API on CPU wide examples/l3fwd-power: add PM QoS configurati

[PATCH v3 2/2] examples/l3fwd-power: add PM QoS configuration

2024-06-18 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li --- examples/l3fwd-power/main.c | 29 + 1 file changed, 29 insertions(+) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power

[PATCH v2 1/2] power: introduce PM QoS API on CPU wide

2024-06-13 Thread Huisong Li
shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). Signed-off-by: Huisong Li --- doc/guides/prog_guide/power_man.rst| 22 + doc/guides/rel_notes/release_24_07.rst | 4 + lib/power/meson.build | 2 + lib/power/

[PATCH v2 2/2] examples/l3fwd-power: add PM QoS configuration

2024-06-13 Thread Huisong Li
Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li --- examples/l3fwd-power/main.c | 29 + 1 file changed, 29 insertions(+) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power

[PATCH v2 0/2] power: introduce PM QoS interface

2024-06-13 Thread Huisong Li
27;s idle state selection and limit just enter the shallowest idle state to low the delay after sleep by setting strict resume latency (zero value). [1] https://www.kernel.org/doc/html/latest/admin-guide/abi-testing.html?highlight=pm_qos_resume_latency_us#abi-sys-devices-power-pm-qos-resume-latency

[PATCH 1/2] power: introduce PM QoS interface

2024-03-20 Thread Huisong Li
te the CPU latency request to zero when need. 3) back to the default value when no need(this step is optional). 4) release QoS request when process exit. Signed-off-by: Huisong Li --- doc/guides/prog_guide/power_man.rst| 16 doc/guides/rel_notes/release_24_03.rst | 4 + lib/power/m

[PATCH 2/2] examples/l3fwd-power: add PM QoS request configuration

2024-03-20 Thread Huisong Li
Add PM QoS request configuration to declease the process resume latency. Signed-off-by: Huisong Li --- examples/l3fwd-power/main.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c

[PATCH 0/2] introduce PM QoS interface

2024-03-20 Thread Huisong Li
time. Some service are delay sensitive and very except the low resume time, like interrupt packet receiving mode. So this series introduce PM QoS interface. Huisong Li (2): power: introduce PM QoS interface examples/l3fwd-power: add PM QoS request configuration doc/guides/prog_guide/pow

[PATCH v7 4/5] app/testpmd: add attach and detach port for multiple process

2024-01-29 Thread Huisong Li
state is changed from 'ATTACHED' to 'UNUSED' only after the event callback finished. But the remove_invalid_ports() function removes invalid port only if ethdev state is 'UNUSED'. If we don't add alarm callback, this detached port information can not be removed. Sign

[PATCH v7 5/5] app/testpmd: stop forwarding in new or destroy event

2024-01-29 Thread Huisong Li
When testpmd receives the new or destroy event, the port related information will be updated. Testpmd must stop packet forwarding before updating the information to avoid some serious problems. Signed-off-by: Huisong Li Acked-by: Chengwen Feng --- app/test-pmd/testpmd.c | 4 1 file

[PATCH v7 1/5] drivers/bus: restore driver assignment at front of probing

2024-01-29 Thread Huisong Li
need to be updated if we do that. The driver pointer in rte_device is set before probing and needs to be reset if probing failed. And rte_dev_is_probed can not be called inside probing. Fixes: 391797f04208 ("drivers/bus: move driver assignment to end of probing") Cc: sta...@dpdk.org Si

[PATCH v7 2/5] ethdev: fix skip valid port in probing callback

2024-01-29 Thread Huisong Li
be8cd210379a ("ethdev: fix port probing notification") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Chengwen Feng --- drivers/net/bnxt/bnxt_ethdev.c | 3 ++- drivers/net/mlx5/mlx5.c| 2 +- lib/ethdev/ethdev_driver.c | 13 ++--- lib/ethdev/ethdev_drive

[PATCH v7 3/5] app/testpmd: check the validity of the port

2024-01-29 Thread Huisong Li
This patch checks the validity of port id for all events in 'eth_event_callback()'. Signed-off-by: Huisong Li Acked-by: Aman Singh Acked-by: Chengwen Feng --- app/test-pmd/testpmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/ap

[PATCH v7 0/5] app/testpmd: support multiple process attach and detach port

2024-01-29 Thread Huisong Li
i break. -v4: fix a misspelling. -v3: #1 merge patch 1/6 and patch 2/6 into patch 1/5, and add modification for other bus type. #2 add a RTE_ETH_DEV_ALLOCATED state in rte_eth_dev_state to resolve the probelm in patch 2/5. -v2: resend due to CI unexplained failure. Huisong L

[RFC] ethdev: introduce PTP device capability

2024-01-29 Thread Huisong Li
ome to jumping into discussion. [1] https://patchwork.dpdk.org/project/dpdk/patch/20230203132810.14187-1-tho...@monjalon.net/ [2] https://inbox.dpdk.org/dev/20230817084226.55327-1-lihuis...@huawei.com/ Signed-off-by: Huisong Li --- lib/ethdev/rte_ethdev.h | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH 16/16] doc: add link speed configuration feature for sfc

2023-11-28 Thread Huisong Li
Add link speed configuration feature for sfc. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/sfc.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/sfc.ini b/doc/guides/nics/features/sfc.ini index 8a9198adcb..f9654e69ed 100644 --- a/doc

[PATCH 15/16] doc: add link speed configuration feature for dpaa

2023-11-28 Thread Huisong Li
Add link speed configuration feature for dpaa. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/dpaa.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index a382c7160c..b136ed191a 100644

[PATCH 14/16] doc: add link speed configuration feature for ionic

2023-11-28 Thread Huisong Li
Add link speed configuration feature for ionic. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/ionic.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/ionic.ini b/doc/guides/nics/features/ionic.ini index af0fc5462a..64b2316288 100644

[PATCH 13/16] doc: add link speed configuration feature for ice

2023-11-28 Thread Huisong Li
Add link speed configuration feature for ice. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/ice.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/ice.ini b/doc/guides/nics/features/ice.ini index 13f8871dcc..390558f495 100644 --- a/doc

[PATCH 12/16] doc: add link speed configuration feature for thunderx

2023-11-28 Thread Huisong Li
Add link speed configuration feature for thunderx. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/thunderx.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/thunderx.ini b/doc/guides/nics/features/thunderx.ini index b33bb37c82

[PATCH 11/16] doc: add link speed configuration feature for igb

2023-11-28 Thread Huisong Li
Add link speed configuration feature for igb. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/igb.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/igb.ini b/doc/guides/nics/features/igb.ini index 7b4af6f86c..ee2408f3ee 100644 --- a/doc

[PATCH 10/16] doc: add link speed configuration feature for txgbe

2023-11-28 Thread Huisong Li
Add link speed configuration feature for txgbe. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/txgbe.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/txgbe.ini b/doc/guides/nics/features/txgbe.ini index e21083052c..f697642783 100644

[PATCH 09/16] doc: add link speed configuration feature for ngbe

2023-11-28 Thread Huisong Li
Add link speed configuration feature for ngbe. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/ngbe.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/ngbe.ini b/doc/guides/nics/features/ngbe.ini index 2701c5f051..1dfd92e96b 100644

[PATCH 08/16] doc: add link speed configuration feature for hns3

2023-11-28 Thread Huisong Li
Add link speed configuration feature for hns3. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/hns3.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/hns3.ini b/doc/guides/nics/features/hns3.ini index 338b4e6864..24e9784c25 100644

[PATCH 02/16] doc: add link speed configuration feature for i40e

2023-11-28 Thread Huisong Li
Add link speed configuration feature for i40e. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/i40e.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/i40e.ini b/doc/guides/nics/features/i40e.ini index e241dad047..1c6a476a51 100644

[PATCH 06/16] doc: add link speed configuration feature for atlantic

2023-11-28 Thread Huisong Li
Add link speed configuration feature for atlantic. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/atlantic.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/atlantic.ini b/doc/guides/nics/features/atlantic.ini index ef4155027c

[PATCH 07/16] doc: add link speed configuration feature for octeontx

2023-11-28 Thread Huisong Li
Add link speed configuration feature for octeontx. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/octeontx.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/octeontx.ini b/doc/guides/nics/features/octeontx.ini index fa1e18b120

[PATCH 05/16] doc: add link speed configuration feature for ixgbe

2023-11-28 Thread Huisong Li
Add link speed configuration feature for ixgbe. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/ixgbe.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/ixgbe.ini b/doc/guides/nics/features/ixgbe.ini index 8590ac857f..0ceffcd85d 100644

[PATCH 04/16] doc: add link speed configuration feature for igc

2023-11-28 Thread Huisong Li
Add link speed configuration feature for igc. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/igc.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/igc.ini b/doc/guides/nics/features/igc.ini index 47d9344435..d6db18c1e8 100644 --- a/doc

[PATCH 03/16] doc: add link speed configuration feature for bnxt

2023-11-28 Thread Huisong Li
Add link speed configuration feature for bnxt. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/bnxt.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/bnxt.ini b/doc/guides/nics/features/bnxt.ini index bd4e2295dc..c33889663d 100644

[PATCH 01/16] doc: add features for link speeds

2023-11-28 Thread Huisong Li
Add features for link speeds. Fixes: 82113036e4e5 ("ethdev: redesign link speed config") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Chengwen Feng --- doc/guides/nics/features.rst | 11 +++ doc/guides/nics/features/default.ini | 1 + 2 files changed, 12

  1   2   3   4   5   >