From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id A7A5A10D1E for ; Thu, 22 Dec 2016 12:15:46 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 22 Dec 2016 03:15:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,388,1477983600"; d="scan'208";a="801235626" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.64]) by FMSMGA003.fm.intel.com with SMTP; 22 Dec 2016 03:15:29 -0800 Received: by (sSMTP sendmail emulation); Thu, 22 Dec 2016 11:15:29 +0000 Date: Thu, 22 Dec 2016 11:15:29 +0000 From: Bruce Richardson To: Royce Niu Cc: dev@dpdk.org Message-ID: <20161222111528.GA11104@bricha3-MOBL3.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.7.1 (2016-10-04) Subject: Re: [dpdk-dev] Why IP_PIPELINE is faster than L2FWD 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: , X-List-Received-Date: Thu, 22 Dec 2016 11:15:47 -0000 On Thu, Dec 22, 2016 at 12:18:12AM +0800, Royce Niu wrote: > Hi all, > > I tested default L2FWD and IP_PIPELINE (pass-through). The throughput of > IP_PIPELINE is higher immensely. > > There are only two virtual NICs in KVM. The experiment is just moving > packet from vNIC0 to vNIC1. I think the function is so simple. Why L2FWD > is much slower? > > How can I improve L2FWD, to make L2FWD faster? > Is IP_PIPELINE in passthrough mode modifying the packets? L2FWD swaps the mac addresses on each packet as it processes them, which can slow it down. L2FWD is also more an example of how the APIs work than anything else. For fastest possible port-to-port forwarding, testpmd should give the highest performance. /Bruce