Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2284819imm; Thu, 11 Oct 2018 07:59:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV60plScsgSEF8XqMPnn2IKba4YMSB7SSgNCpm/LOovCctvzk9aDXzPNGxj4MghlO8m0Kod5K X-Received: by 2002:a17:902:6184:: with SMTP id u4-v6mr1872844plj.121.1539269962294; Thu, 11 Oct 2018 07:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539269962; cv=none; d=google.com; s=arc-20160816; b=wSMtWJwORxqf+YsJjTnYe0IRFJWY8QNreKWflMmWsNMOI+R+e3juNhU88awe4vQuRa arWkngiBWAfUwy5CxemHp0VaZG/UVo+l3gav2/Ut9TvHovuLFK6oxhpPCxbFiwohmZXD P1exlUa4zUedZwcn5D6EyLvDPwTKvBouVMepdIIGfv9vfZkrG/y75xZOCz9vYq2CammS BRe43f8Ieqe2GKowCAI0T0xpHIbMozebJJjRNPoVxxPAytEiwURQXogF1oV9S9WDelbZ z3RkMZJKMNPH+u+uz8kpPddSxIZPZqkir74O/ZnkIwNwPyLOvkPV0Bn4iH7lpIqzsXeB qQQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tNSRcpr8CbFuIk02tKvbmpNFe1bvFL5g69uAlsLTtjU=; b=V3VOQqYcM6i63H49o5+lRd2PwUtnKz1SWxyoHlm93Hk+fxL3AU++kCzFH/b0cRB6oZ XliASOAvnP7Z2kzJtYl21oKE8WTr25yfRMjSj7meyvjKyId3nQcUE4/mYFtWKLUEB5kD r/EafWHdJafsGdJFSpirm+XcR8G+KQxhbzThOgmWe764wYyK4TkWKUfuJs80QVNjJ6P1 eklbU3GhYmohxGMKwNRs9l+J6ucefIUKVySKse6Yyxbcq+ErK2NwM/OhoSSqcwVGq1Mo GJ25fDKydxHilvqVx0C04nxhGh3LlFFUu7dgsZiKl+olJeLxakErc2XNwTsS1pMG8G2e sSUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si33094670pfd.50.2018.10.11.07.59.07; Thu, 11 Oct 2018 07:59:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728396AbeJKVQF (ORCPT + 99 others); Thu, 11 Oct 2018 17:16:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52056 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727417AbeJKVQF (ORCPT ); Thu, 11 Oct 2018 17:16:05 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3595830C4198; Thu, 11 Oct 2018 13:48:49 +0000 (UTC) Received: from redhat.com (ovpn-125-61.rdu2.redhat.com [10.10.125.61]) by smtp.corp.redhat.com (Postfix) with SMTP id 6676C6114A; Thu, 11 Oct 2018 13:48:48 +0000 (UTC) Date: Thu, 11 Oct 2018 09:48:48 -0400 From: "Michael S. Tsirkin" To: Tiwei Bie Cc: Jason Wang , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, virtio-dev@lists.oasis-open.org, wexu@redhat.com, jfreimann@redhat.com Subject: Re: [virtio-dev] Re: [PATCH net-next v2 0/5] virtio: support packed ring Message-ID: <20181011094705-mutt-send-email-mst@kernel.org> References: <20180907012225.GA32677@debian> <20180907084509-mutt-send-email-mst@kernel.org> <20180910030053.GA15645@debian> <20180911053726.GA7472@debian> <20180912121457-mutt-send-email-mst@kernel.org> <20180913085919.GA42049@fbsd1.sh.intel.com> <98d6bd4d-45e2-4207-e961-782f649e0139@redhat.com> <20181010103335-mutt-send-email-mst@kernel.org> <20181011121221.GA27106@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181011121221.GA27106@debian> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Thu, 11 Oct 2018 13:48:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 11, 2018 at 08:12:21PM +0800, Tiwei Bie wrote: > > > But if it's not too late, I second for a OUT_OF_ORDER feature. > > > Starting from in order can have much simpler code in driver. > > > > > > Thanks > > > > It's tricky to change the flag polarity because of compatibility > > with legacy interfaces. Why is this such a big deal? > > > > Let's teach drivers about IN_ORDER, then if devices > > are in order it will get enabled by default. > > Yeah, make sense. > > Besides, I have done some further profiling and debugging > both in kernel driver and DPDK vhost. Previously I was mislead > by a bug in vhost code. I will send a patch to fix that bug. > With that bug fixed, the performance of packed ring in the > test between kernel driver and DPDK vhost is better now. OK, if we get a performance gain on the virtio side, we can finally upstream it. If you see that please re-post ASAP so we can put it in the next kernel release. -- MST