[PATCH 2/2] net/ice: fix DCF minimum API version log

Sandeep Penigalapati sandeep.penigalapati at intel.com
Mon Nov 9 13:45:24 CET 2026


The DCF error path that rejects a VIRTCHNL API version below
the minimum passes ICE_CPF_VIRTCHNL_VERSION_MAJOR_START for
both the major and the minor format arguments. The logged
minimum therefore repeats the major number. Pass
ICE_CPF_VIRTCHNL_VERSION_MINOR_START as the minor version.

Fixes: 7564d5509611 ("net/ice: add DCF hardware initialization")
Cc: stable at dpdk.org

Signed-off-by: Sandeep Penigalapati <sandeep.penigalapati at intel.com>
---
 drivers/net/intel/ice/ice_dcf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/intel/ice/ice_dcf.c b/drivers/net/intel/ice/ice_dcf.c
index 976f2ed260..48a5b9667c 100644
--- a/drivers/net/intel/ice/ice_dcf.c
+++ b/drivers/net/intel/ice/ice_dcf.c
@@ -334,7 +334,7 @@ ice_dcf_init_check_api_version(struct ice_dcf_hw *hw)
 		PMD_INIT_LOG(ERR,
 			     "VIRTCHNL API version should not be lower than (%u.%u)",
 			     ICE_CPF_VIRTCHNL_VERSION_MAJOR_START,
-			     ICE_CPF_VIRTCHNL_VERSION_MAJOR_START);
+			     ICE_CPF_VIRTCHNL_VERSION_MINOR_START);
 		return -1;
 	} else if (pver->major > VIRTCHNL_VERSION_MAJOR ||
 		   (pver->major == VIRTCHNL_VERSION_MAJOR &&
-- 
2.34.1



More information about the dev mailing list