From: Tetsuya Mukawa Subject: Re: [RFC PATCH] vhost: remove lockless enqueue to virt ring Date: Fri, 6 Nov 2015 10:42:48 +0900 Message-ID: <563C0598.1040205@igel.co.jp> References: <1446658952-101192-1-git-send-email-huawei.xie@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "haifeng.lin@intel.com" , "ann.zhuangyanying@huawei.com" To: "Xie, Huawei" , "dev@dpdk.org" Return-path: Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by dpdk.org (Postfix) with ESMTP id 7B6FC5A69 for ; Fri, 6 Nov 2015 02:42:53 +0100 (CET) Received: by pasz6 with SMTP id z6so108880902pas.2 for ; Thu, 05 Nov 2015 17:42:52 -0800 (PST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2015/11/05 19:21, Xie, Huawei wrote: > If no objections, would remove the internal cmpset enqueue, should get > some improved performance. > > No idea why commit message is lost: > DPDK doesn't support receiving/transmitting packets from/to the same > port/queue. > Vhost pmd wraps vhost device as normal dpdk port. dpdkvhost based > applications/switch > also treate virtio port and physical port both as ports, and have > their own > lock implmentation when to enqueue packets to the same port. This patch > removes > the internal lockless vhost enqueue implmentation. > On 11/5/2015 5:38 PM, Huawei Xie wrote: >> Signed-off-by: Huawei Xie Hi Xie, I think it's a good optimization. But I guess the patch will changes behavior of vhost library API. For example, if someone has already implemented an application based on the assumption that vhost library has internal lock, I doubt their application will face an issue with this patch. If it's correct, we might need to follow below steps. http://dpdk.org/doc/guides/contributing/versioning.html Thanks, Tetsuya