From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <Ming.Fu@esentire.com>
Received: from mail.esentire.com (mail.iim-support.esentire.com
 [52.129.34.132]) by dpdk.org (Postfix) with ESMTP id E52B9F94
 for <users@dpdk.org>; Fri,  1 Sep 2017 15:36:13 +0200 (CEST)
Received: from exchange.esentire.com (cas01colo01p.internal [10.1.120.115])
 by mail.esentire.com (Postfix) with ESMTPS id 3A3C61802AF
 for <users@dpdk.org>; Fri,  1 Sep 2017 13:36:13 +0000 (UTC)
Received: from mbx01cmb01p.esentire.local (10.1.120.118) by
 mbx02cmb01p.esentire.local (10.1.120.125) with Microsoft SMTP Server (TLS) id
 15.0.1210.3; Fri, 1 Sep 2017 09:36:12 -0400
Received: from mbx01cmb01p.esentire.local ([fe80::814b:946e:3026:96c9]) by
 mbx01cmb01p.esentire.local ([fe80::814b:946e:3026:96c9%14]) with mapi id
 15.00.1210.000; Fri, 1 Sep 2017 09:36:12 -0400
From: Ming Fu <Ming.Fu@esentire.com>
To: "users@dpdk.org" <users@dpdk.org>
Thread-Topic: How rte_mempool_ops_table is populated in a DPDK client
 application?
Thread-Index: AdMjJeblGSS7UtUHTnOkVizz9u6FOA==
Date: Fri, 1 Sep 2017 13:36:12 +0000
Message-ID: <af6cbe8deedf4525b22d6dbbf5eefe54@mbx01cmb01p.esentire.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.1.120.131]
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [dpdk-users] How rte_mempool_ops_table is populated in a DPDK
	client application?
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Sep 2017 13:36:14 -0000

Try to make snort to receive packet from a dpdk ring as an client applicati=
on. The DPDK is compiled into the snort DAQ lib statically. The DAQ lib is =
then linked to snort statically.

What I am find is that the rte_mempool_ops_table is all 0, causing the clie=
nt to crash when free the received mbuf from the ring. I was wondering how =
this rte_mempool_ops_table is populated during DPDK initialization for a cl=
ient application.

The my dpdk snort went through rte_eal_init(), rte_ring_lookup() and rte_me=
mpool_lookup() without error.

Thanks
Ming