From: "Hanoch Haim (hhaim)" Subject: rte_mbuf.h / rte_pktmbuf_prefree_seg / rte_atomic16 Date: Tue, 14 Nov 2017 16:23:49 +0000 Message-ID: <63b5253280db4d39b5ca8efc3182e280@XCH-RTP-017.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "Hanoch Haim (hhaim)" To: "dev@dpdk.org" Return-path: Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) by dpdk.org (Postfix) with ESMTP id F17CF1B265 for ; Tue, 14 Nov 2017 17:23:51 +0100 (CET) Received: from XCH-RTP-019.cisco.com (xch-rtp-019.cisco.com [64.101.220.159]) by alln-core-6.cisco.com (8.14.5/8.14.5) with ESMTP id vAEGNoxf026430 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Tue, 14 Nov 2017 16:23:50 GMT Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi All, I've found a minor issue in the function "rte_pktmbuf_prefree_seg" This code is located here : /dpdk/lib/librte_mbuf/rte_mbuf.h - } else if (rte_atomic16_add_return(&m->refcnt_atomic, -1) =3D=3D 0) Should be : + } else if (likely(rte_mbuf_refcnt_update(m, -1) =3D=3D 0)) { This depends on RTE_MBUF_REFCNT_ATOMIC define Thanks, Hanoh