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 471F6A0547; Fri, 12 Mar 2021 10:29:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 160EC1607ED; Fri, 12 Mar 2021 10:29:22 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 1BFC64067E for ; Fri, 12 Mar 2021 10:29:19 +0100 (CET) IronPort-SDR: FLPBVckaxL2g0I0cfNBgA4RD4xzuA/zVOFI//+BcLVptrHZAMJTXjc4SnPaQqs5Bl1FQ9zXa/0 dD8+lFegq6uw== X-IronPort-AV: E=McAfee;i="6000,8403,9920"; a="188850688" X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="188850688" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 01:29:19 -0800 IronPort-SDR: a82XbUR9GG+RZ0F7VRCtqeBcJBihLOXH23gtgB8bwe5mzuM/UnAcSiv4ftoI2KrVbTVH3aluSe +lHbO6h/ny3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="603873281" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga005.fm.intel.com with ESMTP; 12 Mar 2021 01:29:18 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 12 Mar 2021 01:29:17 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 12 Mar 2021 17:29:16 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.013; Fri, 12 Mar 2021 17:29:16 +0800 From: "Guo, Jia" To: "Zhang, RobinX" , "dev@dpdk.org" CC: "Xing, Beilei" Thread-Topic: [PATCH] net/i40e: fix Virtchnl Offload Caps missing Thread-Index: AQHXFx3vtpnsWJg/3ke8IG3KkC3nG6qAFgCQ Date: Fri, 12 Mar 2021 09:29:15 +0000 Message-ID: <0877af1c4f764b67aeb6f78b7c86c1bc@intel.com> References: <20210312085209.983526-1-robinx.zhang@intel.com> In-Reply-To: <20210312085209.983526-1-robinx.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix Virtchnl Offload Caps missing 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" Acked-by: Jeff Guo > -----Original Message----- > From: Zhang, RobinX > Sent: Friday, March 12, 2021 4:52 PM > To: dev@dpdk.org > Cc: Xing, Beilei ; Guo, Jia ; Z= hang, > RobinX > Subject: [PATCH] net/i40e: fix Virtchnl Offload Caps missing >=20 > A new feature requesting additional queues from PF is added in iavf, befo= re > sending VIRTCHNL_OP_REQUEST_QUEUES op code, the offload capability > flag VIRTCHNL_VF_OFFLOAD_REQ_QUEUES will be checked. And due to > DPDK PF is still used by some cases, so add this offload capability flag = in i40e > pf. >=20 > Fixes: cbdbd360f77f ("net/i40e: support AVF basic interface") >=20 > Signed-off-by: Robin Zhang > --- > drivers/net/i40e/i40e_pf.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c inde= x > f3d6d899f6..9804ed4253 100644 > --- a/drivers/net/i40e/i40e_pf.c > +++ b/drivers/net/i40e/i40e_pf.c > @@ -333,6 +333,10 @@ i40e_pf_host_process_cmd_get_vf_resource(struct > i40e_pf_vf *vf, uint8_t *msg, >=20 > vf_res->vf_cap_flags =3D vf->request_caps & > I40E_VIRTCHNL_OFFLOAD_CAPS; > + > + if (vf->request_caps & VIRTCHNL_VF_OFFLOAD_REQ_QUEUES) > + vf_res->vf_cap_flags |=3D > VIRTCHNL_VF_OFFLOAD_REQ_QUEUES; > + > /* For X722, it supports write back on ITR > * without binding queue to interrupt vector. > */ > -- > 2.25.1