[PATCH v2 2/2] net/zxdh: optimize the procedure for NP online uninit

Tianhao Zhang zhang.tianhao2 at zte.com.cn
Tue Dec 30 09:11:27 CET 2025


Remove the NP software resource uninstallation procedure from the NP
online uninit process. The NP software resource uninstallation should be
called separately within NP uninit to avoid duplicate resource
release.

Signed-off-by: Tianhao Zhang <zhang.tianhao2 at zte.com.cn>
---
 drivers/net/zxdh/zxdh_np.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/net/zxdh/zxdh_np.c b/drivers/net/zxdh/zxdh_np.c
index 89c9283498..7ee9810920 100644
--- a/drivers/net/zxdh/zxdh_np.c
+++ b/drivers/net/zxdh/zxdh_np.c
@@ -4242,10 +4242,6 @@ zxdh_np_online_uninit(uint32_t dev_id,
 	if (rc != 0)
 		PMD_DRV_LOG(ERR, "dtb release port name %s queue id %u", port_name, queue_id);
 
-	rc = zxdh_np_soft_res_uninstall(dev_id);
-	if (rc != 0)
-		PMD_DRV_LOG(ERR, "zxdh_np_soft_res_uninstall failed");
-
 	return 0;
 }
 
-- 
2.27.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20251230/4a4db5d7/attachment.htm>


More information about the dev mailing list