From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82B72A04B5; Sat, 19 Dec 2020 15:49:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 382B5CB06; Sat, 19 Dec 2020 15:49:31 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 888B7CAE2 for ; Sat, 19 Dec 2020 15:49:28 +0100 (CET) IronPort-SDR: L25VZ5KjnvkZd6NJwwIJA4gI/dwwHaBGT1CGwNKaVkcfAvRPUoApD/oFNveW7o77bQsJmJaebO zSm8iNth88yA== X-IronPort-AV: E=McAfee;i="6000,8403,9839"; a="175678238" X-IronPort-AV: E=Sophos;i="5.78,433,1599548400"; d="scan'208";a="175678238" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2020 06:49:27 -0800 IronPort-SDR: VV+3QjuvPR7mJKm71xTkQwwbzHDHm7HFnVKdOLbRVhfbS0ayIzY6PaA8S6U40RAGjPbPyL2Hw+ ngKTfeAu24jw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,433,1599548400"; d="scan'208";a="414722495" Received: from dpdk-wujingji.sh.intel.com ([10.67.119.101]) by orsmga001.jf.intel.com with ESMTP; 19 Dec 2020 06:49:25 -0800 From: Jingjing Wu To: dev@dpdk.org Cc: jingjing.wu@intel.com, beilei.xing@intel.com, chenbo.xia@intel.com, xiuchun.lu@intel.com Date: Sat, 19 Dec 2020 22:38:14 +0800 Message-Id: <20201219143816.64174-1-jingjing.wu@intel.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v1 0/2] introduce new iavf driver on vfio-user client X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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 series introduces a new net virtual device called iavf_client which is based on vfio-user client interface. Through vfio-user client interface, PCI liked device could be used similar as IntelĀ® Ethernet Adaptive Virtual Function specification. The code to enable iavf_client mainly contains two parts: - Emulated pci interfaces for vfio-user client which is located in common/iavf/vfio_user/. - A new net driver base on vdev abstraction, i.e. iavf_client_ethdev.c ---------------------- | ------------------ | | | iavf driver | |----> (iavf_client_ethdev.c) | ------------------ | | ------------------ | | | device emulate | |------>(common/iavf/vfio_user/) | ------------------ | ---------------------- | | ---------------------- | vfio-user | | client | ---------------------- This driver can be used to test the device emulation framework mentioned in: [RFC 0/2] Add device emulation support in DPDK http://patchwork.dpdk.org/cover/75549/ +------------------------------------------------------+ | +---------------+ +---------------+ | | | iavf_emudev | | iavfbe_ethdev | | | | driver | | driver | | | +---------------+ +---------------+ | | | | | | ------------------------------------------- VDEV BUS | | | | | | +---------------+ +--------------+ | +--------------+ | | vdev: | | vdev: | | | +----------+ | | | /path/to/vfio | |iavf_emudev_# | | | | iavf | | | +---------------+ +--------------+ | | | client | | | | | +----------+ | | | | | +----------+ | | +----------+ | | | vfio-user| | | | vfio-user| | | | client | |<---|----->| server | | | +----------+ | | +----------+ | | QEMU/DPDK | | DPDK | +--------------+ +------------------------------------------------------+ It can be launched together with patch series for the testing: [0/9] Introduce vfio-user library: http://patchwork.dpdk.org/cover/85389/ [0/8]Introduce emudev library and iavf emudev driver http://patchwork.dpdk.org/cover/85488/ This series depends on patch serieses: [0/9] Introduce vfio-user library: http://patchwork.dpdk.org/cover/85389/ Jingjing Wu (2): common/iavf: emulated pci interfaces on vfio-user client net/iavf: introduce iavf driver on vfio-user client config/rte_config.h | 3 + drivers/common/iavf/iavf_common.c | 7 + drivers/common/iavf/iavf_impl.c | 45 +- drivers/common/iavf/iavf_osdep.h | 14 + drivers/common/iavf/iavf_prototype.h | 1 + drivers/common/iavf/iavf_type.h | 3 + drivers/common/iavf/meson.build | 11 +- drivers/common/iavf/version.map | 5 + drivers/common/iavf/vfio_user/vfio_user_pci.c | 517 ++++++++++++++++++ drivers/common/iavf/vfio_user/vfio_user_pci.h | 66 +++ drivers/net/iavf/iavf.h | 18 +- drivers/net/iavf/iavf_client_ethdev.c | 298 ++++++++++ drivers/net/iavf/iavf_ethdev.c | 26 +- drivers/net/iavf/iavf_rxtx.c | 23 +- drivers/net/iavf/meson.build | 1 + 15 files changed, 1015 insertions(+), 23 deletions(-) create mode 100644 drivers/common/iavf/vfio_user/vfio_user_pci.c create mode 100644 drivers/common/iavf/vfio_user/vfio_user_pci.h create mode 100644 drivers/net/iavf/iavf_client_ethdev.c -- 2.21.1