From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by dpdk.org (Postfix) with ESMTP id 04224AFD9 for ; Wed, 28 May 2014 16:13:25 +0200 (CEST) Received: by mail-wi0-f174.google.com with SMTP id r20so3872308wiv.1 for ; Wed, 28 May 2014 07:13:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=uSWA1Z4vJ/EGdFoeCsa2zT0l9munDIvzVJOnFNoY9gQ=; b=SrxJc/JHMKKow14+0m7enL9d8DzHSN4sxwP/p+AkQzmBC8B97Z6hyaTQvhI9tMEW0c 3dG5yUVXY7tRh6NIGMWyOl0I8ueqqNqBWMvIRVvWqrC3enGzAm8UQTBSRLieh+2eGEKk SyYZM4a/vuZAgp8C8oPA95yBhgSEN6RCEJK/Sp5XvkHp+RGAi1mYx9da6IoTxx/n6gWq 8i8foCcmzlZSsSQUPh+krDTWt3cUyHiDlvfmQPUMPLLgcO8kCo6xuGOcCa1v5Z7JwA60 p+Wvf+tLh45oNY/3uU9+chB6FzB4QGqmx3g7Y657AB/RYuZdDJ3iT6GLMnbkYXVzMK70 hxYw== X-Gm-Message-State: ALoCoQnRG+J5xMDt+A5GgBXwMfwxxGdswtr888qdr6H+8ocUTNveOFFRSeQdi75S+KlXAe7lqaPo X-Received: by 10.180.103.228 with SMTP id fz4mr9587412wib.4.1401286415518; Wed, 28 May 2014 07:13:35 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id u1sm17207955wia.16.2014.05.28.07.13.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 May 2014 07:13:34 -0700 (PDT) From: Thomas Monjalon To: Ouyang Changchun Date: Wed, 28 May 2014 16:13:30 +0200 Message-ID: <8028065.LdmG1jjMmY@xps13> Organization: 6WIND User-Agent: KMail/4.13 (Linux/3.14.4-1-ARCH; KDE/4.13.0; x86_64; ; ) In-Reply-To: <1401264398-1289-1-git-send-email-changchun.ouyang@intel.com> References: <1401264398-1289-1-git-send-email-changchun.ouyang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 0/3] Support zero copy RX/TX in user space vhost X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2014 14:13:26 -0000 2014-05-28 16:06, Ouyang Changchun: > This patch v3 fixes some errors and warnings reported by checkpatch.pl, > please ignore previous 2 patches: patch v1 and patch v2, only apply this v3 > patch for zero copy RX/TX in user space vhost. > > This patch series support user space vhost zero copy. It removes packets > copying between host and guest in RX/TX. And it introduces an extra ring to > store the detached mbufs. At initialization stage all mbufs put into this > ring; when one guest starts, vhost gets the available buffer address > allocated by guest for RX and translates them into host space addresses, > then attaches them to mbufs and puts the attached mbufs into mempool. > > Queue starting and DMA refilling will get mbufs from mempool and use them to > set the DMA addresses. > > For TX, it gets the buffer addresses of available packets to be transmitted > from guest and translates them to host space addresses, then attaches them > to mbufs and puts them to TX queues. After TX finishes, it pulls mbufs out > from mempool, detaches them and puts them back into the extra ring. > > This patch series also implement queue start and stop functionality in IXGBE > PMD; and enable hardware loopback for VMDQ mode in IXGBE PMD. > > Ouyang Changchun (3): > Add API to support queue start and stop functionality for RX/TX. > Implement queue start and stop functionality in IXGBE PMD; Enable > hardware loopback for VMDQ mode in IXGBE PMD. > Support user space vhost zero copy, it removes packets copying between > host and guest in RX/TX. Acked-by: Thomas Monjalon Applied for version 1.7.0. Thanks -- Thomas