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 60B8CA0C3F; Tue, 11 May 2021 04:02:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E006340140; Tue, 11 May 2021 04:02:55 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 9F0174003C; Tue, 11 May 2021 04:02:54 +0200 (CEST) IronPort-SDR: i4AVr2UcSX/Sq/IBpKgiKX0adbfkdjP76j9EB+yKV7aSDEIe5a6ZNhMc79/eDFLkmTTbPGYe2c cq8AKmS7LHew== X-IronPort-AV: E=McAfee;i="6200,9189,9980"; a="179595693" X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="179595693" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 19:02:53 -0700 IronPort-SDR: LcrWtLSOo3kdbkwIkRPEX+1TTse43bmfHRBuY7Qqmmvid1JQXWxMdEfWMH2tApsuBJ85GzfpGw k2Wtu8OJzEsA== X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="454746501" 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 19:02:51 -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 10:02:44 +0800 Message-Id: <20210511020246.11108-1-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 v3 1/3] net/i40e: fix return status for unsupported VF message 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" This patch modifies the return status for unsupported VF messages, in order to make it the same as the return status of the kernel driver. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: stable@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_pf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index 9804ed4..308da1b 100644 --- a/drivers/net/i40e/i40e_pf.c +++ b/drivers/net/i40e/i40e_pf.c @@ -1464,8 +1464,8 @@ */ default: PMD_DRV_LOG(ERR, "%u received, not supported", opcode); - i40e_pf_host_send_msg_to_vf(vf, opcode, I40E_ERR_PARAM, - NULL, 0); + i40e_pf_host_send_msg_to_vf(vf, opcode, + I40E_ERR_NOT_IMPLEMENTED, NULL, 0); break; } -- 1.8.3.1