Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1888221imm; Wed, 16 May 2018 04:44:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrs0ZOl1dsxwsBTwG6o9nLiJkdvTWhkSd6Ef5rcw7ftGkTLBFF9bjDeGLDadA6LwJKfs0DS X-Received: by 2002:a63:bd49:: with SMTP id d9-v6mr507619pgp.14.1526471065054; Wed, 16 May 2018 04:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526471065; cv=none; d=google.com; s=arc-20160816; b=p68dYHmpkwLIZm7JCJDOe7781yJNe/9CyoN7yRUIcbeF5Z7DCUqMci1xPNDr9n9DJ3 YvA+0XwCN7RF0ZNVzegukswEJ8EASLEjtRZRoPogWJr0qCyi8ISzo1eeN3T/55hKzBRH KXIeWb6lmwASg55lqlA+thv+DIeD+gSSiLZXd0Qgrk4LAHF6fnzLYv3Mdv6trOx4zE71 duO8JbiIbUGRTVMk9+asNxB4AsU5OOaDMwb/75KIZCV+1BZcmt+KBH95Otww6RDcFUPk RNNSM0uVHPZh6EJonHdAgdixbldg2Gnu1Iv7edAx9u3U4xwckww8rPSQlSa4ia4372jQ 15Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=jqmDuPbedx7dacB7Cnarb9mDNYqKCzyiLISC/i5OlUU=; b=kac9tOJ6cYQ2/PN25yk72x5B48XApGAz904GG7sQX9lEarHu6XyV774YjTaGfAcCfX PDXF1HAY/89T+r2rPlgiCEVHbLKuiGbMoSQGeivD1FRpUDjnaxROvh/iPaSUC4UIOjuD iZ9Tn+8YYI6JRvmFlcLViHiqgnRwpTt+UM7AQE+BmANI/qoZ0mLNT293o3rMReB9c9Dr hjwsLpCRKOukO+dAKsJIn2Df67GKq4pm0uloD3KtSKq9dyJf85F6q+4WSd7og8HcCbEn iZudFEkfc+ZKPVhcn5ItcrZUUuMarehR56FJiD/wr+SKPPY/5LFSbyIAKOtdjm+V/TVf J8nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=KopGZYGV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2-v6si2394454pll.40.2018.05.16.04.44.09; Wed, 16 May 2018 04:44:25 -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; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=KopGZYGV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752498AbeEPLm6 (ORCPT + 99 others); Wed, 16 May 2018 07:42:58 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:32965 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbeEPLm4 (ORCPT ); Wed, 16 May 2018 07:42:56 -0400 Received: by mail-lf0-f67.google.com with SMTP id h9-v6so5184682lfi.0 for ; Wed, 16 May 2018 04:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jqmDuPbedx7dacB7Cnarb9mDNYqKCzyiLISC/i5OlUU=; b=KopGZYGV3CUe4+BVv79DAfyz0IIilZGbARXc6lPkPV9wp1KHDchqmBjgBbLmVQQWfv Rb047qSe1+NFDQS4k/4LJh7YaH5Nc90vaqIRqy5se++5+CzALFTYtFhgSnp+X4zMSdmE m27PW5/UD68G+MMugiTb2ehmQ7SG6Aej/HrTbTDp7NbRCKs6O2LX/Y6Cf5pGKZsfzDx+ 2a7sdXLwRmt994XVkbLLfklQULqX3hG/euT2311wX8Rr5+zybMeHH2y6c8JLIZzr4o6/ KlWrPqkaf5kXYWEHTuIWo1TSI8w51oGsn4WC2gDSj4UWIrTziXdK6K+6gEAPQAAfxVdX Lv1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=jqmDuPbedx7dacB7Cnarb9mDNYqKCzyiLISC/i5OlUU=; b=AgQ5/tz+0dYXY0WJVSMGP9TLNCCPNluGGJyHGzCRl2MqGGrmJEso/b9v0mQr7RArlC ScwfWk8Tu+JBCAz3AWc8H1ov4UYwwdnM8dqCj0NDHDrFc5nieWEoAaYSVnvmIVHwldz2 4pJ0ldx+KjjV86fUS7NzkKOf37lTEcPCgWtlBRfK8VBrbIVOiHS4qhIDRh2PtJT/v1vg 0dIpos9EJQteK//gLaNU+e9Gpxmi/Quj1hJglSmZG3AYSmSF8QATGX+sqq/wq37ZU8+l RenKmmaFnsNexxm1RJFwnHZBjkxYLqtSVu8rSX95V6jbplZQ6U8qSytk2s/HykEzdHgK 4Tuw== X-Gm-Message-State: ALKqPwd9qwEGf6h06TcxKvVVKcIo7mMn15DaOZKHdom3S94cNSzOiPER kuhIahm8FBh+HIV56F6a2AizKg== X-Received: by 2002:a2e:997:: with SMTP id 145-v6mr423643ljj.46.1526470975274; Wed, 16 May 2018 04:42:55 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.208]) by smtp.gmail.com with ESMTPSA id c6-v6sm380138lja.22.2018.05.16.04.42.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 04:42:54 -0700 (PDT) Subject: Re: [RFC v4 5/5] virtio_ring: enable packed ring To: Tiwei Bie 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 References: <20180516083737.26504-1-tiwei.bie@intel.com> <20180516083737.26504-6-tiwei.bie@intel.com> <27dfb4e8-6d63-bf7d-0f97-ac51559f8040@cogentembedded.com> <20180516102159.GA11467@debian> From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: Date: Wed, 16 May 2018 14:42:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180516102159.GA11467@debian> Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/16/2018 01:21 PM, 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; Yes, exactly. :-) > Best regards, > Tiwei Bie [...] MBR, Sergei