From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 72B29A0096 for ; Fri, 15 Mar 2019 16:28:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCE092C17; Fri, 15 Mar 2019 16:28:25 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 2E1E12BD3 for ; Fri, 15 Mar 2019 16:28:24 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2FFMkK2009928; Fri, 15 Mar 2019 08:28:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=8D8/IubP6j+9sdSCEmZifOCodDe4LpD7fZuCd2peELk=; b=JkkYbYcpwoU7EX1ERHOe/N0B4eN+cASuv4Jy+QXmw4uigE0Ls+++kxA4EUwKy0kwdGYf k5AmF/MFt5E5dXqRCohfWIx/o8jkh6QRiYe1dxsGvBALZFBD1zmsaJcm5thjN3fjmUZo d140+8LbgbxLJej2sYqFqD1Sw/TqtG8NWjTojHzI/OYYpgJK+dNDeBj+TG712YG7N4D2 0i+OJvZMlnVGBBeEOnnakAGJEQP7eGoJLvc+aQZ476eT4NYheflkUiZbzYIJUSWzR/dp n2ohhLAvCQkUqT0qDzajj72Rz4+blaf+frnQL/1R+UcdQmDdsw406hVbadKivv4G4P4C kw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2r832uhw5x-9 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 15 Mar 2019 08:28:22 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 15 Mar 2019 08:27:46 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.58) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 15 Mar 2019 08:27:46 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8D8/IubP6j+9sdSCEmZifOCodDe4LpD7fZuCd2peELk=; b=QjVjK0fu5bHW2MyyC4IA64uPl3xSC8fk4CN5Ahq3xDNbA5B9HF8R5NWsKU8fHGtjgIKKll5MXkhAr+u4XKB9XYDr5hW2YbkisgTDR8b+0buEcu/c/gmQjTzHpOSHCAEcPGYgB2HxwJv8XtjlMuIzMnZbokCl3g6YVJ5dM9eJNpE= Received: from SN1PR18MB2237.namprd18.prod.outlook.com (52.132.199.27) by SN1PR18MB2287.namprd18.prod.outlook.com (52.132.199.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Fri, 15 Mar 2019 15:27:41 +0000 Received: from SN1PR18MB2237.namprd18.prod.outlook.com ([fe80::ad6a:84a9:7b19:f901]) by SN1PR18MB2237.namprd18.prod.outlook.com ([fe80::ad6a:84a9:7b19:f901%2]) with mapi id 15.20.1709.011; Fri, 15 Mar 2019 15:27:41 +0000 From: Harman Kalra To: "reshma.pattan@intel.com" CC: "dev@dpdk.org" , Jerin Jacob Kollanukkaran , Harman Kalra Thread-Topic: [PATCH] app/pdump: enforcing pdump to use sw mempool Thread-Index: AQHU20OhvYnaD9t2l0mtylBq2EgxSg== Date: Fri, 15 Mar 2019 15:27:41 +0000 Message-ID: <1552663632-18742-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: BM1PR01CA0145.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::15) To SN1PR18MB2237.namprd18.prod.outlook.com (2603:10b6:802:2e::27) 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: 4316f666-7fd0-4aed-8f94-08d6a95ac392 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:SN1PR18MB2287; x-ms-traffictypediagnostic: SN1PR18MB2287: x-microsoft-antispam-prvs: x-forefront-prvs: 09778E995A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(136003)(346002)(376002)(39850400004)(199004)(189003)(2351001)(7736002)(54906003)(50226002)(5660300002)(97736004)(8936002)(6916009)(107886003)(68736007)(106356001)(105586002)(71190400001)(71200400001)(6486002)(4744005)(36756003)(6436002)(52116002)(86362001)(53936002)(6116002)(25786009)(66066001)(4326008)(256004)(14444005)(5640700003)(81166006)(2616005)(476003)(81156014)(478600001)(486006)(8676002)(2501003)(99286004)(55236004)(316002)(6506007)(305945005)(3846002)(2906002)(386003)(26005)(102836004)(14454004)(186003)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR18MB2287; H:SN1PR18MB2237.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: bxDj0b2n3R5iYo5tJpROsfiH4nV1k7Anjw+mXVlxkygqja+smMS1fqLNvIMrq/0DPTnEQT3n26KHZzqmFjViu/wpnj7UfM/kKVsSn38wsRS/QDwGFW30rCOVns+kWIbzKqUKeW40gPS+fWX/tY//i9gurAGgiA2C/oyYQtCXZpTz/UqIjnmKQ0C9dQ8y91dxfYgW0nQ4cJ9SJYe2vQRb8X6iswudfeJiqWxMTPolk42lAb1kgYjorfPFzW7q4ONV9uBoAf5UEi1owgmYzDSjZvtBlpszQKfT5ugyK7DDWIFcRZbRZImZM8cPPuZiMZBQBdYSk2WTw9IMadUJRQvV2frt7B+ETnVNAVVOOLaf8xosS7cz3gIFXGqyU3+YPg/Zymk0xEmG6LfigJZqFARnh1cOJdaK+RFNhX3Z2lzCoOc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4316f666-7fd0-4aed-8f94-08d6a95ac392 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2019 15:27:41.8120 (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-Transport-CrossTenantHeadersStamped: SN1PR18MB2287 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-15_10:, , signatures=0 Subject: [dpdk-dev] [PATCH] 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" Message-ID: <20190315152741.FuFO2-6VsAHSisRD3zNa3_o4MDDZD0qmzcXkHRDr4II@z> Since pdump uses SW rings to manage packets hence pdump should use SW ring mempool for managing its own copy of packets. Signed-off-by: Harman Kalra --- app/pdump/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/pdump/main.c b/app/pdump/main.c index ccf2a1d2f..d0e342645 100644 --- a/app/pdump/main.c +++ b/app/pdump/main.c @@ -598,11 +598,12 @@ 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(), + RTE_MBUF_DEFAULT_MEMPOOL_OPS); if (mbuf_pool =3D=3D NULL) { cleanup_rings(); rte_exit(EXIT_FAILURE, --=20 2.18.0