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 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

Reply via email to