From patchwork Wed Mar 10 09:00:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Lingshan X-Patchwork-Id: 397251 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 263D1C433E9 for ; Wed, 10 Mar 2021 09:06:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D19E764FF7 for ; Wed, 10 Mar 2021 09:06:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232466AbhCJJGE (ORCPT ); Wed, 10 Mar 2021 04:06:04 -0500 Received: from mga03.intel.com ([134.134.136.65]:64352 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhCJJGB (ORCPT ); Wed, 10 Mar 2021 04:06:01 -0500 IronPort-SDR: 4FZetOKMarS+UDH+t9lRD4sFMo4/L+MG1dHGfrO//N36U/cyeExmK7AGLFzB2VeiELLq52ZDh9 SDPxiwGeTjig== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="188461249" X-IronPort-AV: E=Sophos;i="5.81,237,1610438400"; d="scan'208";a="188461249" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2021 01:06:00 -0800 IronPort-SDR: C2P/5eS9Tn3+Kw5cuTpUQ8fg1w7HszNPfkveY4eJNXMT88dS+k/pQRnSuoUYUZZKQ5BSIMWm+N iUQdVbP4tQvg== X-IronPort-AV: E=Sophos;i="5.81,237,1610438400"; d="scan'208";a="410110225" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([10.240.193.73]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2021 01:05:57 -0800 From: Zhu Lingshan To: jasowang@redhat.com, mst@redhat.com, lulu@redhat.com, leonro@nvidia.com Cc: virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhu Lingshan Subject: [PATCH V3 0/6] vDPA/ifcvf: enables Intel C5000X-PL virtio-net Date: Wed, 10 Mar 2021 17:00:46 +0800 Message-Id: <20210310090052.4762-1-lingshan.zhu@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series enabled Intel FGPA SmartNIC C5000X-PL virtio-net for vDPA. vDPA requires VIRTIO_F_ACCESS_PLATFORM as a must, this series verify this feature bit when set features. Changes from V2: verify VIRTIO_F_ACCESS_PLATFORM when set features(Jason) Changes from V1: remove version number string(Leon) add new device ids and remove original device ids in separate patches(Jason) Zhu Lingshan (6): vDPA/ifcvf: get_vendor_id returns a device specific vendor id vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids vDPA/ifcvf: remove the version number string vDPA/ifcvf: fetch device feature bits when probe vDPA/ifcvf: verify mandatory feature bits for vDPA drivers/vdpa/ifcvf/ifcvf_base.c | 20 ++++++++++++++++++-- drivers/vdpa/ifcvf/ifcvf_base.h | 16 ++++++++++++---- drivers/vdpa/ifcvf/ifcvf_main.c | 27 ++++++++++++++++++++------- 3 files changed, 50 insertions(+), 13 deletions(-)