From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id A068A1B587 for ; Mon, 17 Dec 2018 17:30:42 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 96CB3C0753AE; Mon, 17 Dec 2018 16:30:41 +0000 (UTC) Received: from [10.36.112.10] (unknown [10.36.112.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A600160C47; Mon, 17 Dec 2018 16:30:35 +0000 (UTC) To: Jens Freimann , dev@dpdk.org Cc: tiwei.bie@intel.com, Gavin.Hu@arm.com References: <20181214155916.1142-1-jfreimann@redhat.com> <20181214155916.1142-3-jfreimann@redhat.com> From: Maxime Coquelin Message-ID: <58dd3c4d-a848-ead7-0a21-a7874d2f10a6@redhat.com> Date: Mon, 17 Dec 2018 17:30:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20181214155916.1142-3-jfreimann@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 17 Dec 2018 16:30:41 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH v13 02/10] net/virtio: add packed virtqueue helpers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Dec 2018 16:30:42 -0000 On 12/14/18 4:59 PM, Jens Freimann wrote: > +static inline void > +_set_desc_avail(struct vring_packed_desc *desc, int wrap_counter) > +{ > + desc->flags |= VRING_DESC_F_AVAIL(wrap_counter) | > + VRING_DESC_F_USED(!wrap_counter); > +} > + > +static inline void > +set_desc_avail(struct virtqueue *vq, struct vring_packed_desc *desc) > +{ > + _set_desc_avail(desc, vq->avail_wrap_counter); > +} > + I wonder whether these helpers are really needed, as they are no more used in virtio_rxtx.c. Only _set_desc_avail() is used for the ctrl vq.