From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2] mbuf: decrease refcnt when detaching Date: Tue, 17 May 2016 11:58:50 +0100 Message-ID: <20160517105850.GA10652@bricha3-MOBL3> References: <1463327436-6863-1-git-send-email-h.mikita89@gmail.com> <1463417600-20943-1-git-send-email-h.mikita89@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: olivier.matz@6wind.com, dev@dpdk.org To: Hiroyuki Mikita Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id A71E069FA for ; Tue, 17 May 2016 12:58:54 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1463417600-20943-1-git-send-email-h.mikita89@gmail.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 Tue, May 17, 2016 at 01:53:20AM +0900, Hiroyuki Mikita wrote: > The rte_pktmbuf_detach() function should decrease refcnt on a direct > buffer. > > Signed-off-by: Hiroyuki Mikita > --- > v2: > * introduced a new function rte_pktmbuf_detach2() which decrease refcnt. > * marked rte_pktmbuf_detach() as deprecated. > * added comments about refcnt to rte_pktmbuf_attach() and rte_pktmbuf_detach(). > * checked refcnt when detaching in unit tests. > * added this issue to release notes. > Rather than detach2, would unattach be better? /Bruce