Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1808084ybc; Wed, 20 Nov 2019 04:31:48 -0800 (PST) X-Google-Smtp-Source: APXvYqxaCCsVTN56Utza9iTOTsEYOk3JQXprKDWVwAVCI4S+roM3wGso/JIbzviO0wuNAn2vclrm X-Received: by 2002:a5d:5050:: with SMTP id h16mr3229764wrt.380.1574253107785; Wed, 20 Nov 2019 04:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574253107; cv=none; d=google.com; s=arc-20160816; b=ulAOIF7K9hcxOK7ouk8S4dxla82ZHFNTddjsj71ZWep9r01Iqh7XvZWctuEGoM5Z+S yUGS7BfHs60x9ZOzhL9ELrdfCIYG2XI3/jXqyHkOOOSIZNLNi5iYRT6CaO8x0OWsfFCf Cl0wQvRwXXG8mMZw/irb/AhhUUAuLQoIVaXiCxlD8F5w+4L+G2BL+9HbEoVfydYtMbEW g447S2gjJUNRkrJLpXMu1lXJsys6DjwyIrwZVnGJegpW4TX345uSt1inV8IFrhRzospm BGYpJ1EPLmTlUkh7QD4XMjLA1WPDTwLk3P4kIcEj1pHUWOIEf9UaOFb8YP3eeOjTc1En P3Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=wW7PK06qjZi+Q7APNvsccr58AZmgw+FqA9ZDQYmjqgo=; b=EIRP/8Y7qWZZQHEzROhajsT8O65KSGXleel0MEAo8KMpH2nprTR92XI6nCk05R6Pvm URpcA4JBa8oXc2hPYo0e/k/DXhvuwxKpiEHwjXov8+IVP+RNepoqv75ZTLPkMTpFlvcv DAgQ+1InyI49TZjx//aQ3Rpo5A9d/NeF/M0+lesM+inlNiepQcSzc8ZHVj/siyYel9HI HqRpP97lOFjmW5jovU3DP6lfbRUsQix77l6NKh1EGVSir53DhQg4UM80aY/MBiiHYDHs nIrWOL5aymoO5j+DwBhTV4JKCqe7AUXCXuZfBq9RWgYZhAbUghJ/xRwpUSBi9Bofu1bf QJcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si17510884edf.256.2019.11.20.04.31.17; Wed, 20 Nov 2019 04:31:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728143AbfKTJT3 (ORCPT + 99 others); Wed, 20 Nov 2019 04:19:29 -0500 Received: from mga06.intel.com ([134.134.136.31]:61597 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbfKTJT2 (ORCPT ); Wed, 20 Nov 2019 04:19:28 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2019 01:19:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,221,1571727600"; d="scan'208";a="237660905" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([10.240.193.79]) by fmsmga002.fm.intel.com with ESMTP; 20 Nov 2019 01:19:24 -0800 From: Zhu Lingshan To: mst@redhat.com, jasowang@redhat.com, alex.williamson@redhat.com Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, netdev@vger.kernel.org, dan.daly@intel.com, cunming.liang@intel.com, tiwei.bie@intel.com, jason.zeng@intel.com, zhiyuan.lv@intel.com, Zhu Lingshan Subject: [RFC V4 0/2] Intel IFC VF driver for VDPA Date: Wed, 20 Nov 2019 17:17:09 +0800 Message-Id: <1574241431-24792-1-git-send-email-lingshan.zhu@intel.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all: This series intends to introduce Intel IFC VF NIC driver for Vhost Data Plane Acceleration(VDPA). Here comes two main parts, one is ifcvf_base layer, which handles hardware operations. The other is ifcvf_main layer handles VF initialization, configuration and removal, which depends on and complys to: virtio_mdev V13 https://lkml.org/lkml/2019/11/18/261 vhost_mdev V7 https://lkml.org/lkml/2019/11/18/1068 This patchset passed netperf tests. This is RFC V4, plese help review. I will split them into small patches once got reviewed. Changes from V3: Adapt to Jason Wang's virtio_mdev V13 patchset. minor improvements Changes from V2: removed some unnecessary code. using a struct ifcvf_lm_cfg to address hw->lm_cfg and operations on it. set CONFIG_S_FAILED when ifcvf_start_hw() fail. removed VIRTIO_NET_F_CTRL_VQ and VIRTIO_NET_F_STATUS replace ifcvf_net_config with virtio_net_config. minor changes Changes from V1: using le32_to_cpu() to convert PCI capabilities. some set /get operations will sync with the hardware, eg get_status and get_generation. remove feature bit VHOST_F_LOG_ALL, add VIRTIO_F_ORDERED_PLATFORM add get/set_config functions. split mdev type group into mdev_type_group_virtio and mdev_type_group_vhost add ifcvf_mdev_get_mdev_features() coding stype changes. Zhu Lingshan (2): This commit introduced ifcvf_base layer. This commit introduced IFC operations for vdpa drivers/vhost/ifcvf/ifcvf_base.c | 326 ++++++++++++++++++++++ drivers/vhost/ifcvf/ifcvf_base.h | 129 +++++++++ drivers/vhost/ifcvf/ifcvf_main.c | 582 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 1037 insertions(+) create mode 100644 drivers/vhost/ifcvf/ifcvf_base.c create mode 100644 drivers/vhost/ifcvf/ifcvf_base.h create mode 100644 drivers/vhost/ifcvf/ifcvf_main.c -- 1.8.3.1