From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B60A0A0C44; Tue, 11 May 2021 03:50:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C38C44110B; Tue, 11 May 2021 03:50:15 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 6A504410F4; Tue, 11 May 2021 03:50:13 +0200 (CEST) IronPort-SDR: qNWSonhPY8vVvXxJMznWCMiio6coDSitX+k2/8McHG8dK/2w51hJtWyPldHrHq7FbGcSjbUkA0 7Qc6LkpKtetQ== X-IronPort-AV: E=McAfee;i="6200,9189,9980"; a="199007763" X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="199007763" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 18:50:13 -0700 IronPort-SDR: HXAB9AQbu2D1+/nYaiWi/BjM4BbznrVI0jHsgZ9vlgWefHkCzoVZPotqL8ZNpQ5X3n5rr4sjvV I3qNlZYBaOaQ== X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="454743300" Received: from shwdenpg235.ccr.corp.intel.com ([10.240.182.60]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 18:50:11 -0700 From: Alvin Zhang To: beilei.xing@intel.com, Ting.Xu@intel.com Cc: dev@dpdk.org, Alvin Zhang , stable@dpdk.org Date: Tue, 11 May 2021 09:50:02 +0800 Message-Id: <20210511015002.16644-3-alvinx.zhang@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20210511015002.16644-1-alvinx.zhang@intel.com> References: <20210511015002.16644-1-alvinx.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 3/3] net/iavf: fix V-channel message status X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add support of VIRTCHNL_STATUS_ERR_NOT_IMPLEMENTED for facilitating compatibility with PF. Chang 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 --- drivers/net/iavf/iavf_vchnl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 5d57e8b..ca5c56e 100644 --- a/drivers/net/iavf/iavf_vchnl.c +++ b/drivers/net/iavf/iavf_vchnl.c @@ -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", -- 1.8.3.1