From: Yuanhan Liu Subject: Re: [PATCH] vhost: avoid memory write on net header when necessary Date: Wed, 19 Apr 2017 14:11:27 +0800 Message-ID: <20170419061127.GB31523@yliu-dev.sh.intel.com> References: <1492156398-14405-1-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Maxime Coquelin To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 2DBEE2C72 for ; Wed, 19 Apr 2017 08:14:36 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1492156398-14405-1-git-send-email-yuanhan.liu@linux.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Apr 14, 2017 at 03:53:18PM +0800, Yuanhan Liu wrote: > Like what we did for virtio PMD driver [0][1], we could also apply such > trick to vhost, to avoid the memory write on net header when necessary. > > [0]: c9ea670c1dc7 ("net/virtio: fix performance regression due to TSO") > [1]: 16994abee215 ("net/virtio: optimize header reset on any layout") > > With this, the cache issue of the mergeable path is again greatly reduced: > even the write of "num_buffers" could be avoided. A quick PVP test shows > the gap between the mergeable Rx and non-mergable Rx is pretty small now: > they are basically the same in my test. > > Signed-off-by: Yuanhan Liu Applied to dpdk-next-virtio. --yliu