From patchwork Thu Jan 7 07:14:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jingjing Wu X-Patchwork-Id: 86084 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9BE85A09FF; Thu, 7 Jan 2021 08:28:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 36258140E95; Thu, 7 Jan 2021 08:28:50 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 6ACE6140D04 for ; Thu, 7 Jan 2021 08:28:48 +0100 (CET) IronPort-SDR: Kpeo1FTrRm5HfUGztMgPvDDycDh+Kg1fVRgmchHuc4v2fPNQS1hY1Ay6WkcgeE452PsOfRUHiV dnoJgjQT+uuA== X-IronPort-AV: E=McAfee;i="6000,8403,9856"; a="173880027" X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="173880027" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2021 23:28:47 -0800 IronPort-SDR: dFfaVIU9TjWD9VlRudqba6YIuya+WXPWqd9ChnAxtTOhX/X+YryDRZF9+c461tB9F+W1rUJJz9 7bicScqikWNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="379617032" Received: from dpdk-wujingji.sh.intel.com ([10.67.119.101]) by orsmga008.jf.intel.com with ESMTP; 06 Jan 2021 23:28:45 -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:14:57 +0800 Message-Id: <20210107071503.14720-1-jingjing.wu@intel.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20201219075454.40266-1-jingjing.wu@intel.com> References: <20201219075454.40266-1-jingjing.wu@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 0/6] introduce iavf backend driver 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 net device driver called iavfbe which is working as datapath driver for emulated iavf type device. It provides basic function following IntelĀ® Ethernet Adaptive Virtual Function specification, including recevice/transmit packets and virtchnl control messages handling. The driver enabling work is based on the 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_# | | | | Generic | | | +---------------+ +--------------+ | | | vfio-dev | | | | | | +----------+ | | | | | +----------+ | | +----------+ | | | vfio-user| | | | vfio-user| | | | client | |<---|----->| server | | | +----------+ | | +----------+ | | QEMU/DPDK | | DPDK | +--------------+ +------------------------------------------------------+ This series depends on patch serieses: [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/ v2: - extend to support iavf rx interrupt - extend to support control queue interrupt - rename some Macros of header file - fix lock and init in virchnl about queues - fix some typo Jingjing Wu (6): net/iavf_be: introduce iavf backend driver net/iavf_be: control queue enabling net/iavf_be: virtchnl messages process net/iavf_be: add Rx Tx burst support net/iavf_be: extend backend to support iavf rxq_irq doc: new net PMD iavf_be MAINTAINERS | 6 + doc/guides/nics/features/iavf_be.ini | 11 + doc/guides/nics/iavf_be.rst | 53 ++ doc/guides/nics/index.rst | 1 + doc/guides/rel_notes/release_21_02.rst | 6 + drivers/net/iavf_be/iavf_be.h | 109 +++ drivers/net/iavf_be/iavf_be_ethdev.c | 964 ++++++++++++++++++++ drivers/net/iavf_be/iavf_be_rxtx.c | 511 +++++++++++ drivers/net/iavf_be/iavf_be_rxtx.h | 165 ++++ drivers/net/iavf_be/iavf_be_vchnl.c | 1113 ++++++++++++++++++++++++ drivers/net/iavf_be/meson.build | 14 + drivers/net/iavf_be/version.map | 3 + drivers/net/meson.build | 1 + 13 files changed, 2957 insertions(+) create mode 100644 doc/guides/nics/features/iavf_be.ini create mode 100644 doc/guides/nics/iavf_be.rst create mode 100644 drivers/net/iavf_be/iavf_be.h create mode 100644 drivers/net/iavf_be/iavf_be_ethdev.c create mode 100644 drivers/net/iavf_be/iavf_be_rxtx.c create mode 100644 drivers/net/iavf_be/iavf_be_rxtx.h create mode 100644 drivers/net/iavf_be/iavf_be_vchnl.c create mode 100644 drivers/net/iavf_be/meson.build create mode 100644 drivers/net/iavf_be/version.map