DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/ice: fix DDP package init
@ 2022-09-07 12:06 Qi Zhang
  2022-09-07 12:05 ` Zhang, Qi Z
  2022-10-08 14:06 ` [PATCH v2] " Qi Zhang
  0 siblings, 2 replies; 6+ messages in thread
From: Qi Zhang @ 2022-09-07 12:06 UTC (permalink / raw)
  To: qiming.yang; +Cc: dev, stevex.yang, Qi Zhang

ICE_DDP_PKG_SAME_VERSION_ALREADY_LOADED and
ICE_DDP_PKG_COMPATIBLE_ALREADY_LOADED should not be treated as
a DDP package init failure. Use ice_is_init_pkg_successful
to check return value of ice_copy_and_init_pkg.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index fc889420c7..50fe23fdc4 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -1836,7 +1836,7 @@ int ice_load_pkg(struct ice_adapter *adapter, bool use_dsn, uint64_t dsn)
 	PMD_INIT_LOG(DEBUG, "DDP package name: %s", pkg_file);
 
 	err = ice_copy_and_init_pkg(hw, buf, bufsz);
-	if (err) {
+	if (!ice_is_init_pkg_successful(err)) {
 		PMD_INIT_LOG(ERR, "ice_copy_and_init_hw failed: %d\n", err);
 		goto out;
 	}
@@ -1846,7 +1846,7 @@ int ice_load_pkg(struct ice_adapter *adapter, bool use_dsn, uint64_t dsn)
 
 out:
 	free(buf);
-	return err;
+	return 0;
 }
 
 static void
-- 
2.26.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-08  6:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-07 12:06 [PATCH] net/ice: fix DDP package init Qi Zhang
2022-09-07 12:05 ` Zhang, Qi Z
2022-10-08  5:46   ` Zhang, Qi Z
2022-10-08 14:06 ` [PATCH v2] " Qi Zhang
2022-10-08  6:11   ` Huang, ZhiminX
2022-10-08  6:13     ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).