Commit 1d9a915f authored by Marco Chiappero's avatar Marco Chiappero Committed by Herbert Xu

crypto: qat - fix VF IDs in PFVF log messages

PFVF debug messages use a mix of zero and one based VF IDs.
Switch to zero based VF numbers in all log messages.
Signed-off-by: default avatarMarco Chiappero <marco.chiappero@intel.com>
Reviewed-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e669b4de
...@@ -123,7 +123,7 @@ static bool adf_handle_vf2pf_int(struct adf_accel_dev *accel_dev) ...@@ -123,7 +123,7 @@ static bool adf_handle_vf2pf_int(struct adf_accel_dev *accel_dev)
if (!__ratelimit(&vf_info->vf2pf_ratelimit)) { if (!__ratelimit(&vf_info->vf2pf_ratelimit)) {
dev_info(&GET_DEV(accel_dev), dev_info(&GET_DEV(accel_dev),
"Too many ints from VF%d\n", "Too many ints from VF%d\n",
vf_info->vf_nr + 1); vf_info->vf_nr);
continue; continue;
} }
......
...@@ -50,7 +50,7 @@ static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr, ...@@ -50,7 +50,7 @@ static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr,
dev_dbg(&GET_DEV(accel_dev), dev_dbg(&GET_DEV(accel_dev),
"Compatibility Version Request from VF%d vers=%u\n", "Compatibility Version Request from VF%d vers=%u\n",
vf_nr + 1, vf_compat_ver); vf_nr, vf_compat_ver);
if (vf_compat_ver <= ADF_PFVF_COMPAT_THIS_VERSION) { if (vf_compat_ver <= ADF_PFVF_COMPAT_THIS_VERSION) {
compat = ADF_PF2VF_VF_COMPATIBLE; compat = ADF_PF2VF_VF_COMPATIBLE;
...@@ -78,7 +78,7 @@ static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr, ...@@ -78,7 +78,7 @@ static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr,
dev_dbg(&GET_DEV(accel_dev), dev_dbg(&GET_DEV(accel_dev),
"Legacy VersionRequest received from VF%d 0x%x\n", "Legacy VersionRequest received from VF%d 0x%x\n",
vf_nr + 1, msg); vf_nr, msg);
/* PF always newer than legacy VF */ /* PF always newer than legacy VF */
compat = ADF_PF2VF_VF_COMPATIBLE; compat = ADF_PF2VF_VF_COMPATIBLE;
...@@ -96,7 +96,7 @@ static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr, ...@@ -96,7 +96,7 @@ static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr,
{ {
dev_dbg(&GET_DEV(accel_dev), dev_dbg(&GET_DEV(accel_dev),
"Init message received from VF%d 0x%x\n", "Init message received from VF%d 0x%x\n",
vf_nr + 1, msg); vf_nr, msg);
vf_info->init = true; vf_info->init = true;
} }
break; break;
...@@ -104,13 +104,13 @@ static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr, ...@@ -104,13 +104,13 @@ static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr,
{ {
dev_dbg(&GET_DEV(accel_dev), dev_dbg(&GET_DEV(accel_dev),
"Shutdown message received from VF%d 0x%x\n", "Shutdown message received from VF%d 0x%x\n",
vf_nr + 1, msg); vf_nr, msg);
vf_info->init = false; vf_info->init = false;
} }
break; break;
default: default:
dev_dbg(&GET_DEV(accel_dev), "Unknown message from VF%d (0x%x)\n", dev_dbg(&GET_DEV(accel_dev), "Unknown message from VF%d (0x%x)\n",
vf_nr + 1, msg); vf_nr, msg);
return -ENOMSG; return -ENOMSG;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment