Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1803975imm; Wed, 16 May 2018 03:23:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq2PeAZ8FW85fF2TS5AYpdBrUIhcWKw86g7s0mWgBMprLiclL6Z8N6pWQbD8N9PnU1jKIhn X-Received: by 2002:a63:7c55:: with SMTP id l21-v6mr252196pgn.148.1526466202217; Wed, 16 May 2018 03:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526466202; cv=none; d=google.com; s=arc-20160816; b=LrHUxEk9TnGi/Ggy+g66nM8e5lfdj40C1eGV5j+0zY98zEZK8H24b7w3g/pSPRaouS qOVsJyP0RSAdssnMuB/CJpkQ1xaaVsvBXgPeoevkGfqtA6bWmeW1zhKSf/CoH0eSiQXs Xdg4CPhIlzREEUmSnC3FucPzG6aaiTpCSKWS0H1b+XoqJStXZxp8iX8I/WeXYbhrJJ0E OAwPQLxQKMScrd+UieQEdx6TZtbSTSdyn8a32C2KfzEEUm65HGaYztyJJaCQd2NP9u/M qqWBftii3UT6DjeZUcrCvDspLeU3yHVkoHTS9qOqrq4uoTa07mRe2ie8eY0H5W2O/rQI 8skQ== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=A1fyPXi6dc42fIfPInQUKHB8ABrt3POmOGcEuO3eEXA=; b=VhQ5Xd4OWmYwUjaK1Hdti2xMMXUt9pRF66lJeARu/LSeIL1o7WmmB8hpui1D6oAOzk S8MDevlJY4YKp8Ve1pF1iLkvCFIzGkr4GDKTQrpZAMEHLjN5ssTy0dOyJaAHsxTO65DJ 1n780Fa+aPDjbvt2BtQfG/crTGjMTHa0/XgeSbmcluzb8WqBFoS6Kak3W3B25/TPn+Ew +ZWIsZzUolrEznZ0duKbQH5Qhbj5hYNUYo5yjsvWKhm80SVPOaD48S1XV245Gyy8yTzs 8+dv14x02gUNPR8AJaXwQAREHi92iDkuD1xurKNzeyXF9TSNSBDKb9a07yQnWDgcCWy2 SF6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=07ShpeVr; 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 b187-v6si1859166pga.562.2018.05.16.03.23.08; Wed, 16 May 2018 03:23: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; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=07ShpeVr; 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 S1753454AbeEPKVX (ORCPT + 99 others); Wed, 16 May 2018 06:21:23 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34318 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752701AbeEPKPv (ORCPT ); Wed, 16 May 2018 06:15:51 -0400 Received: by mail-lf0-f68.google.com with SMTP id r25-v6so4803215lfd.1 for ; Wed, 16 May 2018 03:15:50 -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:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=A1fyPXi6dc42fIfPInQUKHB8ABrt3POmOGcEuO3eEXA=; b=07ShpeVrX+anOVGFly6KIZ1xvW4Zl8HNtanAOR2fqjjX7Dhyxzu817/K5ABEoWz4yP XbVYR84fEG5mDG+gsLvdDgoIL29zWR3KW28HRPrymktmeJAY5+zTmIgJBAAzVQx97ngZ 3tyh7t03KLoDjkp3mRZTan7tVQu7T6YHAxMOxtJTnLOMgG/QBdRUzsMx+gsNN5R2k2e3 zFBSi39WRtAg/CL/5y3alRLrnHQZIcaLzhwbp1rbwwfs52Ur7SrXiMGGqSVY8ML6TnIG mC82Qhuz/gK0PbntvFqyO5/EjvcXqqaC1Ul7ExxOqXaluOL3awHzqOSUYSGugV3IkHLo 9lFw== 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=A1fyPXi6dc42fIfPInQUKHB8ABrt3POmOGcEuO3eEXA=; b=KrnRufLgKQ7H2Z5zfuV0va1rnh+10OcwGyUO+mZ0cYGJnd5ifGf4LEbT7Q7qtb+l0N EKbgv50HUt5NM6vjK2TjvD/x0mxaWhicZoF38J49PXqHGznO1kSfzMMl73IQ0Df8QGag +BcLbhu5yiXAqJyoSqNhrAkbyYxbJz/et/mg95Svq3HaEw3Uu1v+G4y32qbciBZnsKrN hAtAKZ5eyTVCHe/7tfmnS1D15XsKHfkKBmR7h/idjz7CCsIn9U0rK/LpTP8wakfqswAL t+py5RpZWd7Z7+R5+UkAy9fhi2+evBcYCnIheQWAqF8Vth3xW4qg+n0M1/jHgSoBJkze zI8g== X-Gm-Message-State: ALKqPwdxvKVyGH84xi0nL6tKdibCJ3vIb9ynKRrUScgZnhWswUmZUYF3 CHa/6ZY4dBc/DfNwR8h8P2NOyg== X-Received: by 2002:a19:9453:: with SMTP id w80-v6mr14086802lfd.15.1526465749620; Wed, 16 May 2018 03:15:49 -0700 (PDT) Received: from [192.168.0.126] ([31.173.85.238]) by smtp.gmail.com with ESMTPSA id m17-v6sm347484lji.94.2018.05.16.03.15.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 03:15:48 -0700 (PDT) Subject: Re: [RFC v4 5/5] virtio_ring: enable packed ring To: Tiwei Bie , mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: wexu@redhat.com, jfreimann@redhat.com References: <20180516083737.26504-1-tiwei.bie@intel.com> <20180516083737.26504-6-tiwei.bie@intel.com> From: Sergei Shtylyov Message-ID: <27dfb4e8-6d63-bf7d-0f97-ac51559f8040@cogentembedded.com> Date: Wed, 16 May 2018 13:15:48 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180516083737.26504-6-tiwei.bie@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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*? > default: > /* We don't understand this bit. */ > __virtio_clear_bit(vdev, i); MBR, Sergei