From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id AA5356A1C for ; Tue, 14 Jun 2016 16:06:33 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 14 Jun 2016 07:05:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,470,1459839600"; d="scan'208";a="121661992" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga004.fm.intel.com with ESMTP; 14 Jun 2016 07:05:25 -0700 Date: Tue, 14 Jun 2016 22:07:34 +0800 From: Yuanhan Liu To: Huawei Xie Cc: dev@dpdk.org, yuanhan.liu@intel.com, jianfeng.tan@intel.com, mukawa@igel.co.jp, kevin.traynor@intel.com, haifeng.lin@huawei.com Message-ID: <20160614140734.GC10038@yliu-dev.sh.intel.com> References: <1465818732-116302-1-git-send-email-huawei.xie@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1465818732-116302-1-git-send-email-huawei.xie@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] vhost: remove internal lockless enqueue 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: Tue, 14 Jun 2016 14:06:34 -0000 Firstly, it's V2. So, don't forget to add version number and link it to the previous version next time. On Mon, Jun 13, 2016 at 07:52:12PM +0800, Huawei Xie wrote: > All other DPDK PMDs doesn't support concurrent receiving or sending > packets to the same queue. The upper application should deal with > this, normally through queue and core bindings. > > Due to historical reason, vhost internally supports concurrent lockless > enqueuing packets to the same virtio queue through costly cmpset operation. > This patch removes this internal lockless implementation and should improve > performance a bit. > > Luckily DPDK OVS doesn't rely on this behavior. > > Signed-off-by: Huawei Xie Applied to dpdk-next-virtio, with the rebase on top of my vhost ABI/API changes. FYI, I also renamed the title a bit to "remove concurrent enqueue" as Thomas mentioned in the last version, that it's confusing to say "remove lockless" here, since we are actually removing the lock. Thanks. --yliu