From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Maximets Subject: Re: [PATCH RFC 2/4] vhost: make buf vector for scatter RX local. Date: Fri, 19 Feb 2016 10:30:46 +0300 Message-ID: <56C6C4A6.2080507@samsung.com> References: <1455863563-15751-1-git-send-email-i.maximets@samsung.com> <1455863563-15751-3-git-send-email-i.maximets@samsung.com> <20160219070650.GS21426@yliu-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Dyasly Sergey To: Yuanhan Liu Return-path: Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 22CACC3FA for ; Fri, 19 Feb 2016 08:30:49 +0100 (CET) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O2S0055GA7COY80@mailout1.w1.samsung.com> for dev@dpdk.org; Fri, 19 Feb 2016 07:30:48 +0000 (GMT) In-reply-to: <20160219070650.GS21426@yliu-dev.sh.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 19.02.2016 10:06, Yuanhan Liu wrote: > On Fri, Feb 19, 2016 at 09:32:41AM +0300, Ilya Maximets wrote: >> Array of buf_vector's is just an array for temporary storing information >> about available descriptors. It used only locally in virtio_dev_merge_rx() >> and there is no reason for that array to be shared. >> >> Fix that by allocating local buf_vec inside virtio_dev_merge_rx(). >> >> Signed-off-by: Ilya Maximets >> --- >> lib/librte_vhost/rte_virtio_net.h | 1 - >> lib/librte_vhost/vhost_rxtx.c | 45 ++++++++++++++++++++------------------- >> 2 files changed, 23 insertions(+), 23 deletions(-) >> >> diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h >> index 10dcb90..ae1e4fb 100644 >> --- a/lib/librte_vhost/rte_virtio_net.h >> +++ b/lib/librte_vhost/rte_virtio_net.h >> @@ -91,7 +91,6 @@ struct vhost_virtqueue { >> int kickfd; /**< Currently unused as polling mode is enabled. */ >> int enabled; >> uint64_t reserved[16]; /**< Reserve some spaces for future extension. */ >> - struct buf_vector buf_vec[BUF_VECTOR_MAX]; /**< for scatter RX. */ >> } __rte_cache_aligned; > > I like this kind of cleanup, however, it breaks ABI. Should I prepare version of this patch with field above marked as deprecated and add note to doc/guides/rel_notes/release_16_04.rst about future deletion? Best regards, Ilya Maximets.