The error path that rejects a VIRTCHNL API version below the
minimum supported by Adaptive VF passes
VIRTCHNL_VERSION_MAJOR_START for both the major and the minor
format arguments. The logged minimum therefore repeats the
major number. Pass VIRTCHNL_VERSION_MINOR_START as the minor
version.
Fixes: 22b123a36d07 ("net/avf: initialize PMD")
Cc: [email protected]
Signed-off-by: Sandeep Penigalapati <[email protected]>
---
drivers/net/intel/iavf/iavf_vchnl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/intel/iavf/iavf_vchnl.c
b/drivers/net/intel/iavf/iavf_vchnl.c
index 34961fe654..f1354648cf 100644
--- a/drivers/net/intel/iavf/iavf_vchnl.c
+++ b/drivers/net/intel/iavf/iavf_vchnl.c
@@ -778,7 +778,7 @@ iavf_check_api_version(struct iavf_adapter *adapter)
PMD_INIT_LOG(ERR, "VIRTCHNL API version should not be lower"
" than (%u.%u) to support Adaptive VF",
VIRTCHNL_VERSION_MAJOR_START,
- VIRTCHNL_VERSION_MAJOR_START);
+ VIRTCHNL_VERSION_MINOR_START);
return -1;
} else if (vf->virtchnl_version.major > VIRTCHNL_VERSION_MAJOR ||
(vf->virtchnl_version.major == VIRTCHNL_VERSION_MAJOR &&
--
2.34.1