Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756033AbdC2Kqy convert rfc822-to-8bit (ORCPT ); Wed, 29 Mar 2017 06:46:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49110 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753541AbdC2Kqc (ORCPT ); Wed, 29 Mar 2017 06:46:32 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 2201161D01 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=pagupta@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 2201161D01 Date: Wed, 29 Mar 2017 06:46:27 -0400 (EDT) From: Pankaj Gupta To: Jason Wang Cc: "Michael S. Tsirkin" , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <674632255.8752546.1490784387956.JavaMail.zimbra@redhat.com> In-Reply-To: References: <1490069087-4783-1-git-send-email-jasowang@redhat.com> <1490069087-4783-8-git-send-email-jasowang@redhat.com> <20170322155111-mutt-send-email-mst@kernel.org> Subject: Re: [PATCH net-next 7/8] vhost_net: try batch dequing from skb array MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.65.193.72] Thread-Topic: vhost_net: try batch dequing from skb array Thread-Index: +Ouu4NanvWjZ2XO8jw0oGrijoOJPfg== X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 29 Mar 2017 10:46:31 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 636 Lines: 29 Hi Jason, > > On 2017年03月23日 13:34, Jason Wang wrote: > > > > > >> > >>> +{ > >>> + if (rvq->rh != rvq->rt) > >>> + goto out; > >>> + > >>> + rvq->rh = rvq->rt = 0; > >>> + rvq->rt = skb_array_consume_batched_bh(rvq->rx_array, rvq->rxq, > >>> + VHOST_RX_BATCH); > >> A comment explaining why is is -bh would be helpful. > > > > Ok. > > > > Thanks > > Rethink about this. It looks like -bh is not needed in this case since > no consumer run in bh. In that case do we need other variants of "ptr_ring_consume_batched_*()" functions. Are we planning to use them in future? > > Thanks >