From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: Re: [PATCH v9 2/8] net/virtio: add packed virtqueue defines Date: Thu, 25 Oct 2018 17:22:37 +0800 Message-ID: <20181025092236.GB22179@debian> References: <20181024143236.21271-1-jfreimann@redhat.com> <20181024143236.21271-3-jfreimann@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: dev@dpdk.org, maxime.coquelin@redhat.com, zhihong.wang@intel.com To: Jens Freimann Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 530AF2BAE for ; Thu, 25 Oct 2018 11:24:01 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20181024143236.21271-3-jfreimann@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Oct 24, 2018 at 04:32:30PM +0200, Jens Freimann wrote: > Signed-off-by: Jens Freimann > --- > drivers/net/virtio/virtio_ring.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/virtio/virtio_ring.h b/drivers/net/virtio/virtio_ring.h > index e65da100b..f84ab5e34 100644 > --- a/drivers/net/virtio/virtio_ring.h > +++ b/drivers/net/virtio/virtio_ring.h > @@ -15,7 +15,10 @@ > #define VRING_DESC_F_WRITE 2 > /* This means the buffer contains a list of buffer descriptors. */ > #define VRING_DESC_F_INDIRECT 4 > - > +/* This flag means the descriptor was made available by the driver */ > +#define VRING_DESC_F_AVAIL(b) ((uint16_t)(b) << 7) > +/* This flag means the descriptor was used by the device */ > +#define VRING_DESC_F_USED(b) ((uint16_t)(b) << 15) Please add an empty line here. > /* The Host uses this in used->flags to advise the Guest: don't kick me > * when you add a buffer. It's unreliable, so it's simply an > * optimization. Guest will still kick if it's out of buffers. */ > -- > 2.17.1 >