[v3,3/3] net/iavf: fix V-channel message status
Checks
Commit Message
Add support of VIRTCHNL_STATUS_ERR_NOT_IMPLEMENTED for facilitating
compatibility with PF.
Change the error log-level from ERROR to WARNING when a V-channel
message is not supported by PF, because the VF may still be able to
run without certain features which not supported by PF.
Fixes: 0c35eecfe8b5 ("net/iavf: fix VF to PF command failure handling")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
---
drivers/net/iavf/iavf_vchnl.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
@@ -234,8 +234,10 @@
_clear_cmd(vf);
err = -EIO;
} else if (vf->cmd_retval ==
- VIRTCHNL_STATUS_ERR_NOT_SUPPORTED) {
- PMD_DRV_LOG(ERR, "Cmd %d not supported", args->ops);
+ VIRTCHNL_STATUS_ERR_NOT_SUPPORTED ||
+ vf->cmd_retval ==
+ VIRTCHNL_STATUS_ERR_NOT_IMPLEMENTED) {
+ PMD_DRV_LOG(WARNING, "Cmd %d not supported", args->ops);
err = -ENOTSUP;
} else if (vf->cmd_retval != VIRTCHNL_STATUS_SUCCESS) {
PMD_DRV_LOG(ERR, "Return failure %d for cmd %d",