Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1178544imm; Wed, 4 Jul 2018 13:16:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdOrLJObvPhfDy9kWP92scj3kDEXfMkiGMdT1SvI6UmTZw9Vro6OgtraEVN6xiNOn9Yt6lY X-Received: by 2002:a17:902:a9ca:: with SMTP id b10-v6mr3381466plr.275.1530735364265; Wed, 04 Jul 2018 13:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530735364; cv=none; d=google.com; s=arc-20160816; b=kG/K26i2xAyop726O0v3eHuc+ZqIXuePzGYwr7naZtorql2FhocDKXx0gGXtRiSd+u 6AiN987L11urLInNwcWOfHkZk167XE/QtQ4ZZ2IlvrKJWOMDWs9754wOKJmWTkkUS7Uz tz26lLSGfiy7zFwz2nrFzliPcQEdHDQVVXLR3IZE/1GwTcaNwKNpSGtef4IjRFY8XLj1 gAlrnGUr4Gvf6JLvLfdER/A0Z2XasqTfyS/pWT8FvtH8JcnbW3ynfVGPXMbKtkb/CS0z Bl04D3gL6x8BtkwKjL2z14fdAWSdM5wuHQ/KO2CUB7lBK5hKse9gIONPeCayx5AqKhqr NXsQ== 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:arc-authentication-results; bh=6Em8Rfr6WJDBj2L+pFScbP1fWbY8SCOT3QlFVFpu+EE=; b=wesbIPQoqDGURR4F5Id3TcvEEKumgSInnZoSse2j7iI/PCQx68vUXDXSWrMWlDstWf un8Vl9p7Mxy0p7JWP8m9knCS7TXIUFH/1pX5rrfrwV137I4qN99stjCWRDllrTg5Gh1v a/XdhPTDGu5TvbGj7r48CacRCDSACc0T0os1YagotMTSZaU4Jz4yb0y4I2+Na0/Virn7 YCfjYFL/ZZ9F8hWzAnZGClqxwKNLa3NxWwPfL3lMB8qCs3oRxUTBgNlWUFRYFi26v+N3 lPOHYwMT8eav3C4Zn65jO8DYzsy/6b/ceTAcYsdpM2UsLO4jkVscJDqClD++4V5EWb0Z P4iQ== 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 n7-v6si3489731plp.363.2018.07.04.13.15.49; Wed, 04 Jul 2018 13:16:04 -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 S1753025AbeGDUPL (ORCPT + 99 others); Wed, 4 Jul 2018 16:15:11 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47324 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752622AbeGDUPJ (ORCPT ); Wed, 4 Jul 2018 16:15:09 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1953D7A7EB; Wed, 4 Jul 2018 20:15:09 +0000 (UTC) Received: from [10.36.112.34] (ovpn-112-34.ams2.redhat.com [10.36.112.34]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1F10B2156880; Wed, 4 Jul 2018 20:15:03 +0000 (UTC) Subject: Re: [PATCH net-next 6/8] virtio: introduce packed ring defines To: Jason Wang , mst@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: wexu@redhat.com, tiwei.bie@intel.com, jfreimann@redhat.com References: <1530596284-4101-1-git-send-email-jasowang@redhat.com> <1530596284-4101-7-git-send-email-jasowang@redhat.com> From: Maxime Coquelin Message-ID: <0f293989-a0ca-e7ad-f907-83a8d8445335@redhat.com> Date: Wed, 4 Jul 2018 22:15:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1530596284-4101-7-git-send-email-jasowang@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 04 Jul 2018 20:15:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 04 Jul 2018 20:15:09 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/2018 07:38 AM, Jason Wang wrote: > diff --git a/include/uapi/linux/virtio_ring.h b/include/uapi/linux/virtio_ring.h > index 6d5d5fa..71c7a46 100644 > --- a/include/uapi/linux/virtio_ring.h > +++ b/include/uapi/linux/virtio_ring.h > @@ -43,6 +43,8 @@ > #define VRING_DESC_F_WRITE 2 > /* This means the buffer contains a list of buffer descriptors. */ > #define VRING_DESC_F_INDIRECT 4 > +#define VRING_DESC_F_AVAIL 7 > +#define VRING_DESC_F_USED 15 For consistency, you may want to make VRING_DESC_F_AVAIL and VRING_DESC_F_USED to represent the bit mask and not the bit position, as done for VRING_DESC_F_WRITE and VRING_DESC_F_INDIRECT. Regards, Maxime