From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8417DA0526 for ; Wed, 22 Jul 2020 06:08:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EBF1B1BFEE; Wed, 22 Jul 2020 06:08:10 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 375BE1BFBA; Wed, 22 Jul 2020 06:08:07 +0200 (CEST) IronPort-SDR: hENr2i3lhnI77cfqqsXG5Sqn7mGUfbfU3U+cGuY+AWWPu0/EGmUzd4iNsUeYQW2cUY0QvjuXen TbDspW8/9zIw== X-IronPort-AV: E=McAfee;i="6000,8403,9689"; a="137772171" X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="137772171" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2020 21:08:05 -0700 IronPort-SDR: fzG+PwHyECH3+YfPD/3SQQgTCfXxpMUI3SQtaDXu5stCG4Q32RQCp1f8JL3aFWSn+GbQFm8UgX Jo9lhoMQRD8A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="301827824" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 21 Jul 2020 21:08:05 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Jul 2020 21:08:05 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Jul 2020 21:08:04 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.105) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Jul 2020 21:08:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G9zM1z47JwHoJtDV33f1Z26gDu9EUODIvc5mUjm2mDLb7fJ69VYgRXV6EuRXy/YpxyJI+3rTP04aE6bSFtRoO3h3XQrVYWqT44Mve5hD4XfGCWQi7qUiHh9omXxSX/D7afV0X+itcOTDb2gCYrm3FwJ5C2+JEJ9ui6oTwSfRrnjcCNDBtDJ59RxOEOGyEXkcmmd0IA1WV7olh3VUQn6CMdhXC7tjiqagTwbzpTC1O/LGO3/TkWUpzdpSltZJvswkr06j9voJ1WOA71VRmCY163+Q65Vad4JBAH8UfhW1y0UxSOa04v+9ElHhC09wB94s30ucMAOuwudeW1UiHMhiig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xCgZ/m7+dE82YQSsDJyuyh5eLS4t5YN3IoOEYFx3/4g=; b=buZss37Uo2Uz+I5HsJAGZkDf1eBJZrxPmW8dA/gWVisc0+3W6XoIBCobQwTNHo5NzERJUSQ3jsDZioiZF5R3y5Eys1tkvHXW3MWONKaNFJ1Xo0ssQZwjCTjIIcAxtQinT2OMNyaFpBdz6YxP/qldqvEnSksTD4Zy47XWP3qwHgGFDrbhVHkVhI1WIdjq42D+s/L/tkSma7SO8ImGHAHc6K4xg1r4C97KoXGZS2HE2yxz0BYlzApGYkSrdUN1Z+5coQMSYGfdgR1oX7EG18/7ds3p0vspy4rbKC5nwr0xujHexqOBpTeCIGHA7mYOTitKNvcHdaI6r064MtXkZPFJ4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xCgZ/m7+dE82YQSsDJyuyh5eLS4t5YN3IoOEYFx3/4g=; b=wHeamx2lrIqVkCvKx14COHifclL5EjvJjtyewiG3n464Bf482jB0p0rQ1lN/xRs2inqLwLP0co8z7CRMs1fLcP5jQJXJ5/JtvyPWUUPLqgqHenAXxPI3nDKNsoAP17SkrGGulMOt0Wqf173M9AgSG9VfPz5ZKBYZg/YyT7MzG8s= Received: from MN2PR11MB3823.namprd11.prod.outlook.com (2603:10b6:208:f9::22) by MN2PR11MB3647.namprd11.prod.outlook.com (2603:10b6:208:ec::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.21; Wed, 22 Jul 2020 04:08:03 +0000 Received: from MN2PR11MB3823.namprd11.prod.outlook.com ([fe80::e123:79b5:be38:f32d]) by MN2PR11MB3823.namprd11.prod.outlook.com ([fe80::e123:79b5:be38:f32d%4]) with mapi id 15.20.3216.021; Wed, 22 Jul 2020 04:08:03 +0000 From: "Varghese, Vipin" To: Stephen Hemminger , Dikshant Chitkara CC: "users@dpdk.org" , "dev@dpdk.org" , "Amir Ilan" , Veeresh Patil Thread-Topic: [dpdk-dev] DPDK PDUMP Issue Thread-Index: AdZZqsmijJmfaGCxQD6BJkVQWrW5qwAURiEAAXgmNqA= Date: Wed, 22 Jul 2020 04:08:02 +0000 Message-ID: References: <20200714092902.31e95f83@hermes.lan> In-Reply-To: <20200714092902.31e95f83@hermes.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [49.207.208.212] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3dcb3f31-939c-4e52-291e-08d82df4d458 x-ms-traffictypediagnostic: MN2PR11MB3647: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fbsw1T71OxM1v2FdB3X2gGYkVZOVtLqcuU88us+vViToOnNkyOUXzZuPmvw0BJFGwemivS4VU63Q6JeilttHzLmaHcmIM7mwJfbbnDp/5YyWiG4zZX6ijvyRvmrFap/Nai0qwUEk0yG2a5cpooPOiM1v2omigq2Xep+1h/h3jJd7uHxLTYNkLojkvqjODh1mrSgbjsPsm6jnbqIrpjJPcLlD1Cq9VOyCsS3Dw7PUmHA1SdH2GIpaGq1gjW1MY0DnI8SiPiuidWn1N7OVxApD4MgLZW/+NkTwxivfxIQgFGx2qdsU5E6OcNXL6eqVkRAehHvt8JO3p6m+hb83S4yXHSFG5WWKeMPolmUSr+GZFtoYawYKIqUXr9p0uyKvgYFdoBnYFEO+9tEUKA8UMrozbw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB3823.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(396003)(136003)(39860400002)(346002)(366004)(83380400001)(4326008)(110136005)(966005)(55016002)(8676002)(54906003)(7696005)(33656002)(8936002)(9686003)(478600001)(316002)(5660300002)(55236004)(52536014)(86362001)(71200400001)(2906002)(6506007)(26005)(76116006)(66476007)(66556008)(186003)(66946007)(64756008)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: xk+xb77z6wl6M+tcxMWJ/dTTL8A5Q95O7Zxl6f6eSqVBTE5jC0Qzkf23rkcfCqidvVzLH4uDruYLuiLvc6lFiTj9YWh2aWkhANbV2iLXEL/pO0t6oQmIu3xETrVz6Z25pX7tWfw8iTat1iO42IoNhEDI8BkdscQl/YjPrruZYwyh/TawTpeQstTPRkBCZp8kHleKND+0kPfxv24Crjemh8xUPhx7Xu7R/dAR+LFtylEi9OAuMz3zoRWtflycHLXN2n6hlVeN8OHFRL3KFAiT0woiM4fPa82MnpXMG9vwEihoT/QOkYhA26VWa2rrYKKdxLW04FxuYr+/Qc7xo2cvnrWic+f4q6Ko7wEY9rU0o/fxS7euZANYSgTrzbG0mlUTqynH+qSUubXNZ91hakDkhzV5cnuhLO/STJhqOxXjwyzSAZHiMM/MQtSz1jIX3O8j4vgvDfKEr+xyb3/0z92llqaF53LvJk+/R4M+63km/kdkZHdBOMd5ISxU3PhgTo9K x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB3823.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3dcb3f31-939c-4e52-291e-08d82df4d458 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2020 04:08:02.8853 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EaS+8Lq4OIyYdugSnmiaxS+kDjmZYqWd7FDwt39mhFUGJleNyotFmGlGjhF5q5SGvp+6ypSlAur7V6BZL4Xj6AEhdv+HxkTYlwUH3IiPvZk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3647 X-OriginatorOrg: intel.com Subject: Re: [dpdk-users] [dpdk-dev] DPDK PDUMP Issue X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Snipped > Dikshant Chitkara wrote: >=20 > > Hi Team, > > > > We are facing an issue w.r.t to using DPDK PDUMP utility and want to ch= eck if > you can help us in this regard. > > > > This issue is specific to DPDK 19.05 version or may be newer versions = and > was not found on DPDK 18.08 version. > > > > The issue is that when we built DPDK in shared library mode and try to = run > PDUMP we get following error on PDUMP console: > > > > EAL: Failed to hotplug add device > > EAL: Error - exiting with code: 1 > > Cause: vdev creation failed > > > > On Debugging above error message, I found that inside rte_dev_probe() > function in the file lib/librte_eal/common/eal_common_dev.c , req.result= =3D - > 14 which is non-zero value and points to enum EFAULT (Bad address) value, > thus leading to above error. > > > > However, when I ran PDUMP in DPDK 18.08, I did not observe any such iss= ue > and it worked fine. > > > > DPDK was built with following flags set in config/common_base file: > > > > CONFIG_RTE_LIBRTE_PMD_PCAP=3Dy > > CONFIG_RTE_LIBRTE_PDUMP=3Dy > > > > I ran PDUMP with testpmd as primary application and was trying to send > some traffic on the Ethernet dpdk port using testpmd and capture it using > pdump. > > > > Attached are the logs for both testpmd and pdump in both DPDK19_05 and > DPDK_18_08 version for your reference. > > > > Let us know if you can help in this regard. > > > > Thanks, > > Dikshant > > >=20 > Pdump runs as secondary process, what is your primary process. > Is the secondary process using the same exact versions of DPDK and librar= ies as > the primary process? > The secondary process needs access to the same devices and drivers as the > primary process to work. Based on the log files shared, I have made assumptions as 1. Primary: testpmd 2. DPDK version: 19.05 3. SHARED LIB in .config: yes 4. export LD_LIBRARY_PATH: yes Using arguments passed in primary, I faced error ``` EAL: Error - exiting with code: 1 Cause: Creation of mbuf pool for socket 0 failed: Invalid argument Cause: Mempool creation failed: Invalid argument ``` Hence had to modify with ` -d librte_mempool_ring.so`. Using arguments pas= sed in secondary, I faced similar error too.=20 With these corrections, I am able to get similar error shared as ``` EAL: failed to parse device "vdev:net_pcap_tx_0" EAL: Failed to hotplug add device on primary EAL: Error - exiting with code: 1 Cause: vdev creation failed ``` Checking the testpmd Makefile, it is narrowed down to missing PCAP_PMD buil= d factor. I rebuild testpmd with ` LD_FLAGS=3D"-lrte_pmd_pcap" make` and re= -ran the same. With this I can get it working properly.=20 Ideally there should had been an entry in Makefile as=20 ``` ifeq ($(CONFIG_RTE_LIBRTE_PMD_PCAP),y) LDLIBS +=3D -lrte_pmd_pcap endif ``` reference: This is similar to the error and solution provided in ` https://= stackoverflow.com/questions/62795017/dpdk-pdump-failed-to-hotplug-add-devic= e/62869287#62869287`