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 AF36BA00E6 for ; Wed, 10 Jul 2019 11:22:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E69012BF4; Wed, 10 Jul 2019 11:22:33 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 7811E2B99 for ; Wed, 10 Jul 2019 11:22:32 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6A9LSE6022480; Wed, 10 Jul 2019 02:22:30 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=1+SvEaMziwPR/TYhmdphpeRvc9PjedkNKDpMxURqJfU=; b=awCYi+qbysrszW/4A6guyQPsl90RYNqMFUglWtb8QT4bx3YoksMzqktWiYfiiXqmUlqf 9VyOxC0Bt6ypZa9aoVGXsVkk96MEy80JChYzZ5IF3YAXSFjyTJKzuF0Ml4NK1GqglxmF hgKJWepdZyDKMdyO0pxcSshSdZofn/09q9OAjCiXjVGvowReRYyeEnBc2GmERY9GUlPt mWyceiPpazQ5KxyLDxu8S1A/BZGig/d6KGO8sOL/zz+iZqY10nMVDVvrf3v34njV4s+v /8Egsyr+GJ0SFbmWmskgWPRFyy1brUmSFT6SXzc67ZEU3PGZZTgV18z1sQRLr6Y0d43B fA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2tn7d7s8yx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 10 Jul 2019 02:22:30 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 10 Jul 2019 02:22:29 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (104.47.50.55) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 10 Jul 2019 02:22:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bq0XLAZlTp2vSL/YAAz8YPpAVS0i9JSgXQraFQm/yD+6zxVBW9uUyh0yXbzrZy8XKXBhDsdZa8SdRrOm58h/PwcucuNjOi6GFLA/J2TsHoQvNkv0dt9Js0otYaf1fHAzz2ySVlmFhqvbNwVJox9eNxVqAElFSorGkizncnqRglxxij1qQfpQDCIoEFiIgF/tCmhFhValxfUkgrg8rN5I9A+QLWfDCXKFkOyF7endBUgVBtfC+DJjIU3tzkybuuu2I0sZn5pYv3BQzOzHWUwjHcIHWechet4rYP5d3s3l5/s8YycpV6gVIud/QMREUjEoAcLDya6PsimGcbgMCaGE7w== 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=1+SvEaMziwPR/TYhmdphpeRvc9PjedkNKDpMxURqJfU=; b=Leax+uSul8UDICRp6/sONGNZq3YOHYU4ReiaWiGYBHwoNDrsTPCHBQIglP9tnRgRAo0Lpq+V4L3AqWACnxCAQF0o5UckczUhMG2VXVGObM5C1jKYL/hhAyz+VQ0+J7+Q6gGVkYv3Exlnjc5uvioBN+WgaYioDg4o7i7Yr+9jJbv6Feym2yUCSe+vjwgpzIANszt0vv+ZrstLdHL1KyyTjfoGxgssu/Z+gca78OL3ZnFou6YfUyaCvWYamkhhd9ZeD7tmYaNRTuN1gOGxLBpLjKw+kSOhnSJJ2N8/3VRVpIgqtYnbi74MSXss2OpnfYvgXVnysb4mKirO4od1TpjoBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=marvell.com;dmarc=pass action=none header.from=marvell.com;dkim=pass header.d=marvell.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1+SvEaMziwPR/TYhmdphpeRvc9PjedkNKDpMxURqJfU=; b=HwlgG6RUkMhr2WgG0wYfiX9k4YcfGw2YPUabLaZb45CVdyEZQBHmT4jkmvvnWCGSZOKs4KhrV9k1mPieM7L+Qbmqi0CqjKMhhp+28u5+6Oqhv/HgPCUlHF5jWSUnPgQkUSllt/xFXkgxZ5RVXmnOxl3gYMvMkAf+qoOSW/2uoWI= Received: from MN2PR18MB2848.namprd18.prod.outlook.com (20.179.21.149) by MN2PR18MB3038.namprd18.prod.outlook.com (20.179.84.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.11; Wed, 10 Jul 2019 09:22:25 +0000 Received: from MN2PR18MB2848.namprd18.prod.outlook.com ([fe80::4447:9459:5386:2e18]) by MN2PR18MB2848.namprd18.prod.outlook.com ([fe80::4447:9459:5386:2e18%7]) with mapi id 15.20.2073.008; Wed, 10 Jul 2019 09:22:25 +0000 From: Harman Kalra To: "reshma.pattan@intel.com" , "olivier.matz@6wind.com" , "thomas@monjalon.net" , "arybchenko@solarflare.com" CC: "dev@dpdk.org" , Jerin Jacob Kollanukkaran , Harman Kalra Thread-Topic: [PATCH v4] app/pdump: enforcing pdump to use SW mempool Thread-Index: AQHVNwD8etE4lFq0kU+ZC4m/CSaueA== Date: Wed, 10 Jul 2019 09:22:25 +0000 Message-ID: <1562750519-5998-1-git-send-email-hkalra@marvell.com> References: <1562661870-24471-1-git-send-email-hkalra@marvell.com> In-Reply-To: <1562661870-24471-1-git-send-email-hkalra@marvell.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0019.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::29) To MN2PR18MB2848.namprd18.prod.outlook.com (2603:10b6:208:3e::21) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 238fc792-1814-4771-ad2a-08d705181ee5 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:MN2PR18MB3038; x-ms-traffictypediagnostic: MN2PR18MB3038: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2089; x-forefront-prvs: 0094E3478A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(136003)(366004)(396003)(39860400002)(189003)(199004)(4744005)(2501003)(50226002)(256004)(14454004)(8936002)(14444005)(68736007)(25786009)(71190400001)(71200400001)(3846002)(6116002)(478600001)(2201001)(81166006)(11346002)(446003)(107886003)(476003)(2616005)(81156014)(66946007)(305945005)(52116002)(66556008)(66446008)(64756008)(7736002)(36756003)(86362001)(76176011)(4326008)(66476007)(110136005)(99286004)(54906003)(316002)(486006)(6512007)(8676002)(26005)(186003)(6486002)(6436002)(55236004)(66066001)(5660300002)(102836004)(386003)(6506007)(53936002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB3038; H:MN2PR18MB2848.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: MB/IPYGVjWrwJe2prIvUZFNOzY4XOyIHTV1nM2HykxQNq5NCX1KdjOgq5nWyIWoWyTKYQgKdNQ6wAw6nZi4M6HdQDXg0ZIjTFtrboyD8I57DOd+gSgHeTIWBvywqNJZE9iTf/8cIbOvQlcj8Ip64H9gbhqieECqap2ikqokH9Vs41EBYM5Gx4TZO/atK4wvdE3oZ8Gpu1Fa3q6dxffCsECUI/38F8pMGBFp3QTVrI0YkX76O2H5idWJtJ19l71eazR7It8kEDqOdSKGr3IStM9dVtibw0o0MZHkGl9SnMwe0Pm/JWp9b1ijixfHZGBd0ZPU0LNGxKfsS+8vvx+xtWmzT7VqdT1Bw3GkkAARLdGXNZMEOb48rGDh6XEWbPWx9e4iZdhyMNzd5Ng37cmaE28hTCYuzNT8SrRoGR40bz9k= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 238fc792-1814-4771-ad2a-08d705181ee5 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jul 2019 09:22:25.7144 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hkalra@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3038 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-10_04:, , signatures=0 Subject: [dpdk-dev] [PATCH v4] app/pdump: enforcing pdump to use SW mempool 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" A secondary process cannot access HW mempool already initiazed by primary, and neither it can setup its own HW mempool due to its own restrictions. Since dpdk-pdump creates mempool for managing its local mbufs, SW mempool is capable enough to solve this purpose. Signed-off-by: Harman Kalra --- app/pdump/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pdump/main.c b/app/pdump/main.c index 80dc924cf..cd0986aee 100644 --- a/app/pdump/main.c +++ b/app/pdump/main.c @@ -604,11 +604,11 @@ create_mp_ring_vdev(void) mbuf_pool =3D rte_mempool_lookup(mempool_name); if (mbuf_pool =3D=3D NULL) { /* create mempool */ - mbuf_pool =3D rte_pktmbuf_pool_create(mempool_name, + mbuf_pool =3D rte_pktmbuf_pool_create_by_ops(mempool_name, pt->total_num_mbufs, MBUF_POOL_CACHE_SIZE, 0, pt->mbuf_data_size, - rte_socket_id()); + rte_socket_id(), "ring_mp_mc"); if (mbuf_pool =3D=3D NULL) { cleanup_rings(); rte_exit(EXIT_FAILURE, --=20 2.18.0