From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 4DE96532E for ; Tue, 11 Apr 2017 21:28:21 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id w204so15353279wmd.1 for ; Tue, 11 Apr 2017 12:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=16G1jdOZ/iHjd52ROMoRWwE5BVGJf8BTqv7eBABOqQM=; b=HbHBh/Xh2b+QbT+JUtBlWE7RT38AHnKhvFJZDW4c+8m+nVinmcJm5fgwgn9q8G6mq2 KVLVSVoutyoAXVJ9+q8Gy94iMr2xhd6zz4S13Lzg3RapCT7PRSnTy+hhbfqb984jFdum 2IScoZtcxD2GWZ5PqmBBB9dYbasopDUL02IPbzTTeVGqpOyv8vyu40KukJkJrB/23/29 VmPB3j/x7rsTAcfArkwL1nSRe+H6EhMgfOEFEu9STl8Twck8knUVjDalJNQJY/qxN+fr 5gYabqu68M4mv/UncQhzKNZvzHl2CAbfquhsdqY+9ZRUa6IbvZ51cncE6HsEMLFX3qqB wEFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=16G1jdOZ/iHjd52ROMoRWwE5BVGJf8BTqv7eBABOqQM=; b=TwgmeKnpJ12l7nKl3KGxa+pDxZdx8eQ/jnt6I11uYFdnXvAmPlJB9wjOfTVBFyk+0w 6O/Y6IW02sJrtraCY51L5NBRlqj1shqO0szw9wy8Gbo2XtJoAVuw3LbrCPVBCrnpUX5n XYKnbQ1GF+wVSab3XK7i/D3uOzhZxAsEQ4rlxNyQKdDcdDsAgi2xn248AGcYeR8Yfjfm PNrWkY9vcXBb/ixDblv/RDx8uEfz6ZMmhs0kHVJFFATgN9/iIs9TNfiH1+DNH/e2RrJp MjiZHD6qNz5Z2dJYMyQO1tS72/dsj2hcH1bxZ1hgogW9FKNHOaz5rZqS9qZbj5SmnNYB SXCg== X-Gm-Message-State: AN3rC/7V3DzgQWo/0PgCrMzoW54IsBqfB0QnOIebIR/UJIhATLIZC31jJnLfuNHFrM7ze0ws X-Received: by 10.28.159.136 with SMTP id i130mr8547714wme.29.1491938900912; Tue, 11 Apr 2017 12:28:20 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id u9sm3669495wme.8.2017.04.11.12.28.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Apr 2017 12:28:20 -0700 (PDT) From: Thomas Monjalon To: john miller Cc: dev@dpdk.org, olivier.matz@6wind.com, shreyansh.jain@nxp.com Date: Tue, 11 Apr 2017 21:28:19 +0200 Message-ID: <1675520.qVeAGBHxLM@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <357262EF-AA7B-4064-963E-FF130E4607E6@atomicrules.com> References: <357262EF-AA7B-4064-963E-FF130E4607E6@atomicrules.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y 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: , X-List-Received-Date: Tue, 11 Apr 2017 19:28:21 -0000 2017-04-11 14:02, john miller: > > We are seeing an issue when running from the head of the master branch in dpdk-next-net and building with CONFIG_RTE_BUILD_SHARED_LIB=y. When we run testpmd using -d to point to our PMD we get this error > > EAL: Error - exiting with code: 1 > Cause: Creation of mbuf pool for socket 0 failed: Invalid argument > > This error occurs as a result of the rte mempool ops table having 0 entries. This table is populated from a call to rte_mempool_register_ops(). This function gets called in rte_mempool_ring.c via the static initialization MACRO MEMPOOL_REGISTER_OPS and exists in librte_mempool_ring.so. However this library is not loaded when the rte_eal_init() gets called so the static initializers are not yet loaded. > > I am requesting advice on the proper way to repair this. We should just add a better error message if no mempool driver is available.