From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9D133A09FF; Thu, 7 Jan 2021 08:59:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EDBA140EBB; Thu, 7 Jan 2021 08:59:20 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id A238E140EB7 for ; Thu, 7 Jan 2021 08:59:18 +0100 (CET) IronPort-SDR: qGTG4E/TDHM1lrrPkb9m4lLinliScrafmCe7d3Cmu1rslXmd7nfEOjSuHoSyIkpvZWt8ZsjbrD NYInJv8c04hg== X-IronPort-AV: E=McAfee;i="6000,8403,9856"; a="165087524" X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="165087524" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2021 23:59:17 -0800 IronPort-SDR: neT7Rfj6GT5MraKAg8RnWLHmCWc16EHf78/cjPD4B7mZchEoh31Z0R2/iEzB3w45xR+RE24rh0 5iqeHfGM/p+g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="351171603" Received: from dpdk-wujingji.sh.intel.com ([10.67.119.101]) by fmsmga008.fm.intel.com with ESMTP; 06 Jan 2021 23:59:15 -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: Thu, 7 Jan 2021 15:45:29 +0800 Message-Id: <20210107074533.15465-1-jingjing.wu@intel.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20201219143816.64174-1-jingjing.wu@intel.com> References: <20201219143816.64174-1-jingjing.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/4] introduce new iavf driver on vfio-user client 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" 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/ [0/6] Introduce iavf backend driver http://patchwork.dpdk.org/cover/86084/ This series depends on patch serieses: [0/9] Introduce vfio-user library: http://patchwork.dpdk.org/cover/85389/ v2: - Enable interrupt for control queue - Enable interrupt for rx queue - Rename some Macros - Fix resource release when close - Fix ptype_tbl assignment - Fix typo Jingjing Wu (4): net/iavf_client: introduce iavf driver on vfio-user client net/iavf_client: enable interrupt on control queue net/iavf_client: client to enable intr_handle for rx_irq net/iavf: fix vector mapping with queue drivers/common/iavf/iavf_prototype.h | 1 + drivers/common/iavf/version.map | 1 + drivers/net/iavf/iavf.h | 37 ++- drivers/net/iavf/iavf_client_ethdev.c | 404 ++++++++++++++++++++++++++ drivers/net/iavf/iavf_ethdev.c | 55 +--- drivers/net/iavf/iavf_rxtx.c | 23 +- drivers/net/iavf/meson.build | 1 + 7 files changed, 477 insertions(+), 45 deletions(-) create mode 100644 drivers/net/iavf/iavf_client_ethdev.c -- 2.21.1