Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1803508imm; Wed, 16 May 2018 03:22:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqdqnsorBv4IW4r/Tto1k5oxbFlrpN8FzKAVvxFW5S9ek5x5EKcNF4CZSDov6GzIr5WduRV X-Received: by 2002:a65:43cb:: with SMTP id n11-v6mr210499pgp.287.1526466172931; Wed, 16 May 2018 03:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526466172; cv=none; d=google.com; s=arc-20160816; b=UFSpG7TSvPw++cN6mp5dzraEB8ZjTvfRnK03fb968e3ag9TxpdCScJjD16ohdZMCb3 xJUbr7Z1GEzQDmLp9Brk8BSW/P8seV+0wQ4IzXJbMt3QRlt72AfiDL0d3B+8k/QetY84 ai7xFd3wrN9X0qhv+QurW8cIXcLog2Etw7GGMpJnCOyiAEkRo+95JKA7OEd+RVicDey1 lTM8eNFAVbh/8b7r+PCZgS5QOxHM7h89KzgSbCD/xB80LGeZJne/tU0HSY5coueoQIrA Y49WGyMF6WDjxfw4foTZqf+hwesRjZ/woury1tiNEu9VyxBRZKQe9nIO2m4APKBIxBX0 +puQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=xzzNmrwMEmHmC+kIU1zFgqfw1TVD0pcDzWOTremxRsk=; b=FPJhmIeLsWOa9vou2X/druflHN6w5n/B6cYDoee5tCMROINaRhpJJ2xbb8oRWg7MWr s85o6VAMSD1yXmk5eA8d9dyU+s6lAQi78bNb8TacP2YYV5eHoLx3qnfHTUmmdhBkBzNz 87sqeApLxFGttCcLdXLCUlihjHOfk6x1TVuV40KYb8HWhK0eucT/UpthTP2TOJiY2h0E +wDE+CUahXMesxRL+Hgk8WBUQRqXPNPRSiCVVEMGkybmLHLOP4wtzqKeCRZgnRsk13L3 8sWoS/HKWY414PngqH6yDHeCy9fY3vrWTThDusllz0V01qS0OC3GtfIzxEZxUZnw+4pN tOhg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9-v6si1840953pgu.27.2018.05.16.03.22.38; Wed, 16 May 2018 03:22:52 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753503AbeEPKVg (ORCPT + 99 others); Wed, 16 May 2018 06:21:36 -0400 Received: from mga09.intel.com ([134.134.136.24]:11739 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752449AbeEPKVe (ORCPT ); Wed, 16 May 2018 06:21:34 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2018 03:21:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,404,1520924400"; d="scan'208";a="56353691" Received: from debian.sh.intel.com (HELO debian) ([10.67.104.203]) by orsmga001.jf.intel.com with ESMTP; 16 May 2018 03:21:32 -0700 Date: Wed, 16 May 2018 18:21:59 +0800 From: Tiwei Bie To: Sergei Shtylyov Cc: mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, wexu@redhat.com, jfreimann@redhat.com Subject: Re: [RFC v4 5/5] virtio_ring: enable packed ring Message-ID: <20180516102159.GA11467@debian> References: <20180516083737.26504-1-tiwei.bie@intel.com> <20180516083737.26504-6-tiwei.bie@intel.com> <27dfb4e8-6d63-bf7d-0f97-ac51559f8040@cogentembedded.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <27dfb4e8-6d63-bf7d-0f97-ac51559f8040@cogentembedded.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 16, 2018 at 01:15:48PM +0300, Sergei Shtylyov wrote: > On 5/16/2018 11:37 AM, Tiwei Bie wrote: > > > Signed-off-by: Tiwei Bie > > --- > > drivers/virtio/virtio_ring.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c > > index de3839f3621a..b158692263b0 100644 > > --- a/drivers/virtio/virtio_ring.c > > +++ b/drivers/virtio/virtio_ring.c > > @@ -1940,6 +1940,8 @@ void vring_transport_features(struct virtio_device *vdev) > > break; > > case VIRTIO_F_IOMMU_PLATFORM: > > break; > > + case VIRTIO_F_RING_PACKED: > > + break; > > Why not just add this *case* under the previous *case*? Do you mean fallthrough? Something like: case VIRTIO_F_IOMMU_PLATFORM: case VIRTIO_F_RING_PACKED: break; Best regards, Tiwei Bie > > > default: > > /* We don't understand this bit. */ > > __virtio_clear_bit(vdev, i); > > MBR, Sergei