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 <[email protected]>
---
 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 4cb9dde982..30c468c218 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

Reply via email to