[PATCH] Skip vfio in the scenario of non-privileged mode

2025-05-17 Thread Yang Ming
fg->vfio_enabled = 0` and `default_vfio_cfg->vfio_container_fd = -1`, socket error will be set in DPDK primary process when it sync this info to the secondary process. This patch use to skip this kind of useless detection for this scenario. Acked-by: Anatoly Burakov Signed-off-by: Yang Ming ---

[PATCH v4] eal/linux: skip vfio for non-privileged container

2025-05-17 Thread Yang Ming
fg->vfio_enabled = 0` and `default_vfio_cfg->vfio_container_fd = -1`, socket error will be set in DPDK primary process when it sync this info to the secondary process. This patch use to skip this kind of useless detection for this scenario. Acked-by: Anatoly Burakov Signed-off-by: Yang Ming ---

[PATCH v3] Skip vfio in the scenario of non-privileged mode

2025-05-17 Thread Yang Ming
fg->vfio_enabled = 0` and `default_vfio_cfg->vfio_container_fd = -1`, socket error will be set in DPDK primary process when it sync this info to the secondary process. This patch use to skip this kind of useless detection for this scenario. Acked-by: Anatoly Burakov Signed-off-by: Yang Ming ---

[PATCH] mailmap: update contributor entry

2025-05-15 Thread Yang Ming
Signed-off-by: Yang Ming --- .mailmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index d8439b79ce..e63e1af4fa 100644 --- a/.mailmap +++ b/.mailmap @@ -1734,7 +1734,7 @@ Yahui Cao Yajun Wu Yangchao Zhou Yanglong Wu -Yang Ming +Yang Ming Yang

Re: [PATCH v2 2/2] crypto/ipsec_mb: fix QP release in secondary

2025-04-24 Thread Yang Ming
Hi, On 2025/4/7 13:25, Yang Ming wrote: From: myang When a secondary process tries to release a queue pair (QP) that does not belong to it, error logs occur: CRYPTODEV: ipsec_mb_ipc_request() line 373: Unable to release qp_id=0 EAL: Message data is too long EAL: Fail to handle message

Re: [PATCH v2 2/2] net/mlx5: enhance log file path

2025-04-10 Thread Yang Ming
On 2025/3/21 21:27, Yang Ming wrote: The directory /var/log may not be writable in a container's read-only mode. To address this issue, use the DPDK runtime directory as an alternative when /var/log is not writable. Cc: bi...@nvidia.com Cc: dsosnow...@nvidia.com Cc: step...@networkplumbe

[PATCH v2 2/2] crypto/ipsec_mb: fix QP release in secondary

2025-04-06 Thread Yang Ming
From: myang When a secondary process tries to release a queue pair (QP) that does not belong to it, error logs occur: CRYPTODEV: ipsec_mb_ipc_request() line 373: Unable to release qp_id=0 EAL: Message data is too long EAL: Fail to handle message: ipsec_mb_mp_msg EAL: Fail to recv reply for reques

[PATCH v2 1/2] eal: prevent socket closure before MP sync

2025-04-06 Thread Yang Ming
send_msg->sendmsg(mp_fd, &msgh, 0); Fixes: 1cab1a40ea9b ("bus: cleanup devices on shutdown") Cc: kevin.la...@intel.com Cc: sta...@dpdk.org Signed-off-by: Yang Ming --- lib/eal/freebsd/eal.c | 2 +- lib/eal/linux/eal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --g

Re: [External] Re: [PATCH] eal: prevent socket closure before MP sync

2025-04-06 Thread Yang Ming
On 2025/3/27 17:28, Yang Ming wrote: On 2025/3/17 21:56, Stephen Hemminger wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. On Fri, 14 Mar 2025 18:36:38 +0800 Yang Ming wrote

Re: [External] Re: [PATCH v2] eal/linux: improve ASLR check

2025-03-30 Thread Yang Ming
On 2025/3/27 16:14, David Marchand wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. Hello, On Thu, Mar 27, 2025 at 9:02 AM Yang Ming wrote: On 2025/3/13 23:37, Stephen Hemminger

Re: [External] Re: [PATCH v2] eal/linux: improve ASLR check

2025-03-27 Thread Yang Ming
On 2025/3/13 23:37, Stephen Hemminger wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. On Thu, 13 Mar 2025 14:19:03 +0800 Yang Ming wrote: This change ensures that the current

Re: [External] Re: [PATCH] eal: prevent socket closure before MP sync

2025-03-27 Thread Yang Ming
On 2025/3/17 21:56, Stephen Hemminger wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. On Fri, 14 Mar 2025 18:36:38 +0800 Yang Ming wrote: The secordary process should not close

[PATCH v2] eal/linux: skip vfio for non-privileged container

2025-03-27 Thread Yang Ming
fg->vfio_enabled = 0` and `default_vfio_cfg->vfio_container_fd = -1`, socket error will be set in DPDK primary process when it sync this info to the secondary process. This patch use to skip this kind of useless detection for this scenario. Signed-off-by: Yang Ming --- lib/eal/linux/eal_vfio.c | 11

[PATCH v2 2/2] net/mlx5: enhance log file path

2025-03-22 Thread Yang Ming
d-off-by: Yang Ming --- drivers/net/mlx5/mlx5_rxtx.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 9c075f6a56..9e63d38524 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/dr

[PATCH v2 1/2] net/mlx5: enhance socket file path

2025-03-21 Thread Yang Ming
d-off-by: Yang Ming --- drivers/net/mlx5/linux/mlx5_socket.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/net/mlx5/linux/mlx5_socket.c b/drivers/net/mlx5/linux/mlx5_socket.c index 6ce0e59643..270a105f1d 100644 --- a/drivers/net/mlx5/

[PATCH] eal: prevent socket closure before MP sync

2025-03-15 Thread Yang Ming
send_msg->sendmsg(mp_fd, &msgh, 0); Fixes: 1cab1a40ea9b ("bus: cleanup devices on shutdown") Cc: kevin.la...@intel.com Cc: sta...@dpdk.org Signed-off-by: Yang Ming --- lib/eal/linux/eal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eal/linux/eal.c b/lib/e

[PATCH v2] eal/linux: improve ASLR check

2025-03-12 Thread Yang Ming
randomization of the virtual address space. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Yang Ming --- lib/eal/linux/eal_memory.c | 12 1 file changed, 12 insertions(+) diff --git a/lib/eal/linux/eal_memory.c b/lib/eal/linux/eal_memo

Re: [External] Re: [PATCH] eal/linux: enhance ASLR verification

2025-03-12 Thread Yang Ming
On 2025/3/13 00:29, Stephen Hemminger wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. On Wed, 12 Mar 2025 11:13:27 +0800 Yang Ming wrote: On 2025/3/11 05:43, Stephen Hemminger

Re: [PATCH] eal/linux: enhance ASLR verification

2025-03-11 Thread Yang Ming
On 2025/3/11 05:43, Stephen Hemminger wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. On Fri, 28 Feb 2025 17:44:04 +0800 Yang Ming wrote: This change ensures that the current

Re: [PATCH 1/2] net/mlx5: improve socket file path

2025-03-11 Thread Yang Ming
On 2025/1/3 10:51, Ming 1. Yang (NSB) wrote: On 2024/12/14 01:16, Bruce Richardson wrote: On Fri, Dec 13, 2024 at 09:12:39AM -0800, Stephen Hemminger wrote: On Fri, 13 Dec 2024 17:24:42 +0800 Yang Ming wrote: 1. /var/tmp is hard code which is not a good style 2. /var/tmp may be not

Re: [External] Re: [PATCH 2/2] net/mlx5: improve log file path

2025-03-11 Thread Yang Ming
- From: Yang Ming Sent: Friday, December 13, 2024 5:25 PM To: Dariusz Sosnowski ; Slava Ovsiienko ; Bing Zhao ; Ori Kam ; Suanming Mou ; Matan Azrad Cc: dev@dpdk.org; Yang Ming Subject: [PATCH 2/2] net/mlx5: improve log file path External email: Use caution opening links or attachments 1. /var/log

[PATCH] net/iavf: fix mbuf release bug for ARM Architecture

2025-03-11 Thread Yang Ming
, ensuring consistent behavior across both x86 and ARM platforms. Fixes: fced83c1229e ("net/iavf: fix mbuf release in multi-process") Cc: ke1x.zh...@intel.com Cc: sta...@dpdk.org Signed-off-by: Yang Ming --- drivers/net/intel/iavf/iavf_rxtx.c | 3 +++ drivers/net/intel/iavf/i

Re: [PATCH 2/2] net/mlx5: improve log file path

2025-03-04 Thread Yang Ming
On 2025/3/4 14:23, Bing Zhao wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. Hi Ming, -Original Message- From: Yang Ming Sent: Friday, December 13, 2024 5:25 PM To

Re: [PATCH] Skip vfio in the scenario of non-privileged mode

2025-02-28 Thread Yang Ming
On 2025/2/26 21:45, Stephen Hemminger wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. On Wed, 22 Jan 2025 16:15:03 +0800 Yang Ming wrote: On 2025/1/18 00:47, Stephen Hemminger

[PATCH] eal/linux: enhance ASLR verification

2025-02-28 Thread Yang Ming
randomization of the virtual address space. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Yang Ming --- lib/eal/linux/eal_memory.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/eal/linux/eal_memory.c b/lib/eal/linux/ea

Re: [PATCH] Skip vfio in the scenario of non-privileged mode

2025-02-25 Thread Yang Ming
On 2025/1/22 16:15, Yang Ming wrote: Hi Stephen Hi Stephen, Could you please confirm the comment above? Brs, Yang Ming

Re: [External] [PATCH v2] cryptodev: not close device when secondary exit

2025-02-20 Thread Yang Ming
: rte_cryptodev_close() line 1453: Device 0 must be stopped before closing Function call trace: rte_eal_cleanup->eal_bus_cleanup-> vdev_cleanup->rte_vdev_driver_remove->ipsec_mb_remove-> rte_cryptodev_pmd_destroy->rte_cryptodev_pmd_release_device-> rte_cryptodev_close Signed-off-by:

Re: [PATCH] Skip vfio in the scenario of non-privileged mode

2025-01-22 Thread Yang Ming
On 2025/1/18 00:47, Stephen Hemminger wrote: Caution: This is an external email. Please be very careful when clicking links or opening attachments. See http://nok.it/nsb for additional information. On Fri, 17 Jan 2025 15:28:47 +0800 Yang Ming wrote: DPDK detect vfio container according

Re: [PATCH v2] eal: fix unused memseg length

2025-01-21 Thread Yang Ming
Hi experts, is there any chance to review and accept this patch? On 2025/1/2 16:58, Yang Ming wrote: Fix the issue where OS memory is mistakenly freed with rte_free by setting the length (len) of unused memseg to 0. When `eal_legacy_hugepage_init()` releases the VA space for unused memseg

[PATCH] Skip vfio in the scenario of non-privileged mode

2025-01-16 Thread Yang Ming
fg->vfio_enabled = 0` and `default_vfio_cfg->vfio_container_fd = -1`, socket error will be set in DPDK primary process when it sync this info to the secondary process. This patch use to skip this kind of useless detection for this scenario. Signed-off-by: Yang Ming --- lib/eal/linux/eal_vfio.c | 11

[PATCH v2] cryptodev: not close device when secondary exit

2025-01-02 Thread Yang Ming
dev_pmd_destroy->rte_cryptodev_pmd_release_device-> rte_cryptodev_close Signed-off-by: Yang Ming --- lib/cryptodev/rte_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c index 85a4b46ac9..ed1021

Re: [PATCH 1/2] net/mlx5: improve socket file path

2025-01-02 Thread Yang Ming
On 2024/12/14 01:16, Bruce Richardson wrote: On Fri, Dec 13, 2024 at 09:12:39AM -0800, Stephen Hemminger wrote: On Fri, 13 Dec 2024 17:24:42 +0800 Yang Ming wrote: 1. /var/tmp is hard code which is not a good style 2. /var/tmp may be not allowed to be written via container's read only

[PATCH v2] eal: fix unused memseg length

2025-01-02 Thread Yang Ming
.@dpdk.org Signed-off-by: Yang Ming Acked-by: Dmitry Kozlyuk --- lib/eal/linux/eal_memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/eal/linux/eal_memory.c b/lib/eal/linux/eal_memory.c index 45879ca743..9dda60c0e1 100644 --- a/lib/eal/linux/eal_memory.c +++ b/lib/eal/linux/eal_me

[PATCH v2] eal: fix unused memseg length

2025-01-01 Thread Yang Ming
.@dpdk.org Signed-off-by: Yang Ming Acked-by: Dmitry Kozlyuk --- lib/eal/linux/eal_memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/eal/linux/eal_memory.c b/lib/eal/linux/eal_memory.c index 45879ca743..9dda60c0e1 100644 --- a/lib/eal/linux/eal_memory.c +++ b/lib/eal/linux/eal_me

Re: [PATCH] Fix unused memseg length for memory issue

2025-01-01 Thread Yang Ming
On 2025/1/1 20:34, Dmitry Kozlyuk wrote: 2024-12-26 16:10 (UTC+0800), Yang Ming: Fix the issue where OS memory is mistakenly freed with rte_free by setting the length (len) of unused memseg to 0. When eal_legacy_hugepage_init releases the VA space for unused memseg lists, it does not reset

[PATCH] Fix unused memseg length for memory issue

2024-12-26 Thread Yang Ming
malloc may return an address less than len, causing mlx5_mem_is_rte to incorrectly treat it as DPDK memory. Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists") Cc: anatoly.bura...@intel.com Cc: sta...@dpdk.org Signed-off-by: Yang Ming --- lib/eal/linux/eal_memory.c | 1

[PATCH 2/2] net/mlx5: improve log file path

2024-12-13 Thread Yang Ming
1. /var/log is hard code which is not a good coding style. 2. /var/log may be not allowed to be written via container's read-only mode. Signed-off-by: Yang Ming --- drivers/net/mlx5/mlx5_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxt

[PATCH 1/2] net/mlx5: improve socket file path

2024-12-13 Thread Yang Ming
1. /var/tmp is hard code which is not a good style 2. /var/tmp may be not allowed to be written via container's read only mode. Signed-off-by: Yang Ming --- drivers/net/mlx5/linux/mlx5_socket.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/

[PATCH] cryptodev: not close device when secondary exit

2024-12-03 Thread Yang Ming
dev_pmd_destroy->rte_cryptodev_pmd_release_device-> rte_cryptodev_close Signed-off-by: Yang Ming --- lib/cryptodev/rte_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c index 85a4b46ac9..ed1021