From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by dpdk.org (Postfix) with ESMTP id 0009D2BF7 for ; Wed, 5 Oct 2016 18:49:08 +0200 (CEST) Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 3856A61; Wed, 5 Oct 2016 16:49:08 +0000 (UTC) Received: from postal.labs.hpecorp.net (mailhub-pa.labs.hpecorp.net [16.111.35.25]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id BA65646; Wed, 5 Oct 2016 16:49:07 +0000 (UTC) Received: from bougret.labs.hpecorp.net (bougret.labs.hpecorp.net [16.111.8.16]) by postal.labs.hpecorp.net (8.14.4/8.14.4/HPL-PA Hub) with ESMTP id u95Gn6d2006229 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 5 Oct 2016 09:49:06 -0700 Received: from jt by bougret.labs.hpecorp.net with local (Exim 4.84_2) (envelope-from ) id 1brpNS-00038g-OO; Wed, 05 Oct 2016 09:49:06 -0700 Date: Wed, 5 Oct 2016 09:49:06 -0700 From: Jean Tourrilhes To: David Marchand Cc: Sergio Gonzalez Monroy , "dev@dpdk.org" Message-ID: <20161005164906.GB11912@labs.hpe.com> References: <20160922204637.GA3166@labs.hpe.com> <20160922211728.GA3124@labs.hpe.com> <20493efb-6822-0847-3685-819c769e5ad2@intel.com> <20161004165930.GA2012@labs.hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organisation: HP Labs Palo Alto Address: HP Labs, MS1184, 1501 Page Mill road, Palo Alto, CA 94304, USA. E-mail: jean.tourrilhes@hpe.com User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 1/1] eal: Don't fail secondary if primary is missing tailqs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: jean.tourrilhes@hpe.com List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2016 16:49:09 -0000 On Wed, Oct 05, 2016 at 09:58:01AM +0200, David Marchand wrote: > Hello, Hi there, > I thought you had unaligned binaries. > You are compiling only one binary ? Primary is compiled using the DPDK build process. Secondary is build using the Snort build process. Both are pointing to the exact same libdpdk.a. > I am not sure Sergio is talking about the constructor approach. But, this is exactly the cause of the problem. > Anyway, the constructors invocation order should not matter. For tailq, I agree. For mempool constructors, order do matter. > Primary and secondary processes build their local tailq entries list > in constructors (so far, I can't see how this is wrong). > "Later", each process updates this list with the actual pointer to the > lists by looking at the shared memory in rte_eal_init (calling > rte_eal_tailqs_init). > > What matters is that secondary tailqs are a subset of the primary tailqs. Which is not the case for me, I have secondary including all tailqs, and primary only having a subset. Check here : http://dpdk.org/ml/archives/dev/2016-September/047329.html > I still have some trouble understanding what you are trying to do. Having things work ;-) > As Sergio asked, can you come up with a simplified example/use case ? Not trivial. I'll see what I can do. > Thanks. > > > -- > David Marchand Regards, Jean