From 948465d8eb98e43f2b4a362e7cef8db272b035cc Mon Sep 17 00:00:00 2001 From: Dengdui Huang Date: Mon, 19 May 2025 10:38:19 +0800 Subject: [PATCH] fix port stop crash The port stop crash issue was caused by Patch6093 backport error. This patch fixes it. Signed-off-by: Dengdui Huang (cherry picked from commit 22076b8e0c9f47312899a9ed59eef095ff1b71df) --- ...net-hns3-fix-unrelease-some-resources-on-reset-case.patch | 2 +- dpdk.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/0093-net-hns3-fix-unrelease-some-resources-on-reset-case.patch b/0093-net-hns3-fix-unrelease-some-resources-on-reset-case.patch index b0942de..247be45 100644 --- a/0093-net-hns3-fix-unrelease-some-resources-on-reset-case.patch +++ b/0093-net-hns3-fix-unrelease-some-resources-on-reset-case.patch @@ -24,7 +24,7 @@ index 032d5b6..d324a37 100644 struct hns3_hw *hw = &hns->hw; PMD_INIT_FUNC_TRACE(); -+ if (__atomic_load_n(&hw->reset.resetting, __ATOMIC_RELAXED) == 0) { ++ if (__atomic_load_n(&hw->reset.resetting, __ATOMIC_RELAXED) != 0) { + hns3_warn(hw, "device is resetting, stop operation is not allowed."); + return -EBUSY; + } diff --git a/dpdk.spec b/dpdk.spec index 216c33a..dbceaed 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -11,7 +11,7 @@ Name: dpdk Version: 23.11 -Release: 30 +Release: 31 URL: http://dpdk.org Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz @@ -328,6 +328,9 @@ fi /usr/sbin/depmod %changelog +* Mon May 19 2025 huangdengdui - 23.11-31 + The Patch6093 backport error caushed port stop crash. This version fixes it. + * Mon Apr 28 2025 huangdengdui - 23.11-30 Sync some patchs from upstreaming for hns3 pmd and modifications are as follow: -- Gitee