From patchwork Fri Mar 12 08:52:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Zhang X-Patchwork-Id: 88994 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4EE55A0547; Fri, 12 Mar 2021 09:59:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E686316082C; Fri, 12 Mar 2021 09:58:59 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 428684067E for ; Fri, 12 Mar 2021 09:58:58 +0100 (CET) IronPort-SDR: cR7eq7LNnoqOhJj0xIIXJgSZ7uR7oTwsE/Snd06gqu6FwyMSjwuScQQplflq4uDHquliM3Gqhr 9m8r4fXPtZdw== X-IronPort-AV: E=McAfee;i="6000,8403,9920"; a="273849355" X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="273849355" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 00:58:56 -0800 IronPort-SDR: 6ODscXY0coHcyUhzOV+Cz6cmhzOKzmqNVh0ZOgsFhtVwkb/4gcoedNfW2GMfifTT7jXa09SfS0 tiTUytyMPUwQ== X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="603864220" Received: from unknown (HELO intel-npg-odc-srv03.cd.intel.com) ([10.240.178.145]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 00:58:54 -0800 From: Robin Zhang To: dev@dpdk.org Cc: beilei.xing@intel.com, jia.guo@intel.com, Robin Zhang Date: Fri, 12 Mar 2021 08:52:09 +0000 Message-Id: <20210312085209.983526-1-robinx.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [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" A new feature requesting additional queues from PF is added in iavf, before 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. Fixes: cbdbd360f77f ("net/i40e: support AVF basic interface") Signed-off-by: Robin Zhang Acked-by: Jeff Guo --- drivers/net/i40e/i40e_pf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index 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, vf_res->vf_cap_flags = vf->request_caps & I40E_VIRTCHNL_OFFLOAD_CAPS; + + if (vf->request_caps & VIRTCHNL_VF_OFFLOAD_REQ_QUEUES) + vf_res->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_REQ_QUEUES; + /* For X722, it supports write back on ITR * without binding queue to interrupt vector. */