From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: LPM6 next hop size Date: Wed, 21 Sep 2016 16:42:05 -0700 Message-ID: <20160921164205.000645d8@xeon-e3> References: <20160919212257.GA27713@mhcomputing.net> <3263960.cPWMKkvuZx@xps13> <20160921172905.GA7158@mhcomputing.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Thomas Monjalon , dev@dpdk.org, Nikita Kozlov To: Matthew Hall Return-path: Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by dpdk.org (Postfix) with ESMTP id 8BD4437B2 for ; Thu, 22 Sep 2016 01:41:55 +0200 (CEST) Received: by mail-pf0-f177.google.com with SMTP id q2so23885237pfj.3 for ; Wed, 21 Sep 2016 16:41:55 -0700 (PDT) In-Reply-To: <20160921172905.GA7158@mhcomputing.net> 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 Wed, 21 Sep 2016 10:29:05 -0700 Matthew Hall wrote: > 5. It uses "malloc" instead of standard DPDK allocators. That's bad for me > because I don't want to use libc malloc in my code. Only DPDK allocators and > jemalloc. This was intentional because rte_malloc comes out of huge page area and that resource is a critical resource. It could use rte_malloc() but that makes it more likely to break when doing Policy Based routing or VRF. The BSD tree was used because it was space/time efficient lookup and available on both BSD and Linux.