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