From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9614CA04DE; Fri, 23 Oct 2020 11:38:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 868C39AFD; Fri, 23 Oct 2020 11:38:39 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 64A379AFB for ; Fri, 23 Oct 2020 11:38:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603445914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WRJipn3wAGN50p9E2A59rDV3giCIXxsCHe4QqMxcgn0=; b=GuBCe8FnMuBwyL+s79BJNWS9deCY8XbeyBrKnJNT9mT2KPsXHeJtiXnunuJjM82ZRS+zD8 73H6Iiz+slTp48klKpulNwfUjCnxWLz40W0ncRynkkNB8vDmt8kvhWZoUVk7266VM2rt28 A90cXPw6eP4pE9cF/nNH9K+V+Cah4Lk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-167-P31PTCJNNXGl3jUX9Yo1Kg-1; Fri, 23 Oct 2020 05:38:29 -0400 X-MC-Unique: P31PTCJNNXGl3jUX9Yo1Kg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0C53181CAF8; Fri, 23 Oct 2020 09:38:28 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3ECF327BB9; Fri, 23 Oct 2020 09:38:25 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: honnappa.nagarahalli@arm.com, ruifeng.wang@arm.com, nd@arm.com Date: Fri, 23 Oct 2020 11:38:16 +0200 Message-Id: <20201023093818.6030-1-david.marchand@redhat.com> In-Reply-To: <20200907081518.46350-1-ruifeng.wang@arm.com> References: <20200907081518.46350-1-ruifeng.wang@arm.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH v3 0/2] LPM changes 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >From Ruifeng Wang: The rte_lpm structure is exported because lookup API is inlined. But most of the structure can be hidden. Discussion at: http://patches.dpdk.org/patch/72403/ This patch set aimed to hide the rte_lpm structure as much as possible. A data free issue was identified and fixed. Changelog since v2: - hid now internal structures, - changed code so that everything is done on internal representation of the lpm object and translation only happens at public API boundaries, -- David Marchand Ruifeng Wang (2): lpm: fix free of data structure lpm: hide internal data doc/guides/rel_notes/release_20_11.rst | 3 + lib/librte_lpm/rte_lpm.c | 388 +++++++++++++------------ lib/librte_lpm/rte_lpm.h | 19 -- 3 files changed, 208 insertions(+), 202 deletions(-) -- 2.23.0