[PATCH 26/39] net/ice/base: support custom ddp package version
Kevin Liu
kevinx.liu at intel.com
Thu Apr 7 12:56:53 CEST 2022
From: Alvin Zhang <alvinx.zhang at intel.com>
Add checking if the current ddp package is a custom package.
Signed-off-by: Steven Zou <steven.zou at intel.com>
Signed-off-by: Alvin Zhang <alvinx.zhang at intel.com>
Signed-off-by: Kevin Liu <kevinx.liu at intel.com>
---
drivers/net/ice/base/ice_flex_pipe.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/ice/base/ice_flex_pipe.c b/drivers/net/ice/base/ice_flex_pipe.c
index 8672c41c69..1827993f44 100644
--- a/drivers/net/ice/base/ice_flex_pipe.c
+++ b/drivers/net/ice/base/ice_flex_pipe.c
@@ -1467,6 +1467,10 @@ static void ice_init_pkg_regs(struct ice_hw *hw)
*/
static enum ice_status ice_chk_pkg_version(struct ice_pkg_ver *pkg_ver)
{
+ /* 0xFF indicate a custom pkg */
+ if (pkg_ver->major == 0xFF)
+ return ICE_SUCCESS;
+
if (pkg_ver->major != ICE_PKG_SUPP_VER_MAJ ||
pkg_ver->minor != ICE_PKG_SUPP_VER_MNR)
return ICE_ERR_NOT_SUPPORTED;
--
2.33.1
More information about the dev
mailing list