From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] log: deprecate history dump Date: Thu, 09 Jun 2016 17:01:14 +0200 Message-ID: <1799099.25AIKSsmQj@xps13> References: <1465481396-23968-1-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: David Marchand Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 9A49C9E3 for ; Thu, 9 Jun 2016 17:01:16 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id n184so229456267wmn.1 for ; Thu, 09 Jun 2016 08:01:16 -0700 (PDT) In-Reply-To: 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" 2016-06-09 16:45, David Marchand: > On Thu, Jun 9, 2016 at 4:09 PM, Thomas Monjalon > wrote: > > The log history uses rte_mempool. In order to remove the mempool > > dependency in EAL (and improve the build), this feature is deprecated. > > The ABI is kept but the behaviour is now voided because it seems this > > function was not used. The history can be read from syslog. > > It does look like it is not really used. > I am for this change unless someone complains. > > Comments below. All your comments will be addressed in a v2. Thanks > - Since you are looking at this, what keeps us from removing the > dependency on librte_ring ? Please see this first small cleanup: http://dpdk.org/ml/archives/dev/2016-June/040798.html > I would say it was mainly because of mempool. > Maybe ivshmem ? Yes CONFIG_RTE_LIBRTE_IVSHMEM brings dependencies to rte_ring and rte_ivshmem. This "feature" also pollute the memory allocator and makes rework harder. That's why I would be in favor of removing CONFIG_RTE_LIBRTE_IVSHMEM. Otherwise, as an alternative proposal, the file lib/librte_eal/linuxapp/eal/eal_ivshmem.c could be moved outside of EAL. Probably that lib/librte_ivshmem/ would be a good place. The tricky operation would be to remove ivshmem init from eal: #ifdef RTE_LIBRTE_IVSHMEM if (rte_eal_ivshmem_init() < 0) rte_panic("Cannot init IVSHMEM\n"); #endif if (rte_eal_memory_init() < 0) rte_panic("Cannot init memory\n"); /* the directories are locked during eal_hugepage_info_init */ eal_hugedirs_unlock(); if (rte_eal_memzone_init() < 0) rte_panic("Cannot init memzone\n"); if (rte_eal_tailqs_init() < 0) rte_panic("Cannot init tail queues for objects\n"); #ifdef RTE_LIBRTE_IVSHMEM if (rte_eal_ivshmem_obj_init() < 0) rte_panic("Cannot init IVSHMEM objects\n"); #endif