From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0069.outbound.protection.outlook.com [104.47.36.69]) by dpdk.org (Postfix) with ESMTP id F02567CB1 for ; Wed, 21 Jun 2017 19:33:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QiT4jkF9pRdmS3ZVMvhL1fu0BGAhaxJjiabwjs5OalQ=; b=cbTouTnTGhYSHe+sgA0MdrEHpXDDKQMwAZMYETutbJASG86/lDvs6m9vnqawel4OFN0VT16eOmy7K/KOnawSfJMjy5ST4q9LfVzmFRYWSgPuOrxRQgI8NiaZ+Ryfr5XtnQNx+i9G15odJ+X7Faz61d3Pq3Y5mpSdGD9vzwH2fck= Authentication-Results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.93.218.67) by BN6PR07MB3092.namprd07.prod.outlook.com (10.172.105.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Wed, 21 Jun 2017 17:33:44 +0000 From: Santosh Shukla To: olivier.matz@6wind.com, dev@dpdk.org Cc: thomas@monjalon.net, hemant.agrawal@nxp.com, jerin.jacob@caviumnetworks.com, bruce.richardson@intel.com, Santosh Shukla Date: Wed, 21 Jun 2017 17:32:46 +0000 Message-Id: <20170621173248.1313-3-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170621173248.1313-1-santosh.shukla@caviumnetworks.com> References: <20170621173248.1313-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0048.INDPRD01.PROD.OUTLOOK.COM (10.174.214.34) To BN6PR07MB3092.namprd07.prod.outlook.com (10.172.105.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 45841a66-c429-460f-5768-08d4b8cbab7e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500055)(300135000095)(300000501055)(300135300095)(22001)(300000502055)(300135100095)(300000503055)(300135400095)(201703131423075)(201703031133081)(300000504055)(300135200095)(300000505055)(300135600095); SRVR:BN6PR07MB3092; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3092; 3:4S/QURFGFovGxv4h9cQzn0pWQRGxuOtxHnKXSwigfNTwBG7o1RsrkkuSr1J+rpU2aebbLTLzFBrlGgaXTzPZAtwmhTqUJqquIckjXKmA3wYI6ecvIFhrgyThTqJOcFetPT61BssJgTv4oZnY1/qv2HTkq+evVi8jY5bMzIv//TZ4b7hWzZ4xGvLO374PYu0oWmwbw7UNHL2y2bhs8RXk1Fy5EP/B+bRzOShbcGPRAIcEoYU1oNL2fWntkhj3Vo0u6M7BAqlcg7534eN0so+yXZD9oRSsmfHyu7ajBmXerEuBf72joEzHwrLexYhZ1JYSgiWVdCcc/nFufPKUKHF1gDLVTeDt2mNapyhkXkHcEyOqlSpg3OS21LtfkENqOfA1ghv9sWm8Va0a96z5tjTrWDnio4AqND+495asIgSGFPp/aNkPKDpc44DUyjRC7yrdthKpGjn8JGV24yitRQHjQ3uEDC9ahIWBQIftIhWabDcH1EkzCd53zSiv1fJBvZp7+g+jzofDBkeXLJVoAneCblQLz4q2N+CvfNRBPg3aeJ6neuF1RtFR4XfgJPIfeHOk5FuWrDIdHIhfbvHMGEYOYuxoSBfPLD0cF1L1H7+Uvaw0Nxk170GwJgi1w9HU6WH5TUcPHlhe4DsFeYu5ySr2lt8cTsZEKEkiEB8WHVwcal9l0WNaCd4TKUpN8ZxzJq8r X-MS-TrafficTypeDiagnostic: BN6PR07MB3092: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3092; 25:qEzMY/W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XPX14ma46xwC3BbD2NypZgJFiW4Io/w+uR0cH69Jo0X+6TftMhVqE33lkPOADOiLNtLFBOY12RyUI1dYxhiM4y3kF6hwca42CPvSvUuoM/TQe6fU5msC4Z8A7h64IbjpF6pt0za4OEm7loL56mafaaD/06g6Mi6s6kp3lfZB44xoad3mRYORJDtmjOxqSHNTKlVk3+ARaoZJw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3092; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3092; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3092; 4:cvMwm0guxRirN5eB9v6eERvYoacYQwOb7asVBVLpPu?= =?us-ascii?Q?m5r7QuZrbilDdzCtbsmLKj06qDQEpld6CCJIWNV4V+Jdr1jVnnV+YbUsizVB?= =?us-ascii?Q?76tPaCoKwAHePt9nhWBdffUNFizuYB/9yY1DSIAHOAwAv3JlMwg5Hr2eatPO?= =?us-ascii?Q?yDE1eFpnI+4PBUbrjuSSZNpZZ2crBdQXSoo6QDe5KDigBSdUS7MjcG2YhYUb?= =?us-ascii?Q?OGAvByupmAYcG/P7iHmK4rYz9ZTKixFpUH4h6PWCM0ykStj3aKqr/p9aAmCW?= =?us-ascii?Q?K/n/19FB2I6y+gtkS8QY7Ubl9ganT77NXF1G4yh1MnFEK8Pm99wdZoDWR/N2?= =?us-ascii?Q?jItwoz9r+IengRhbOO6euVi/Zj02oTnDAiiLEedQRBl9/+bZVDKninO3TY9s?= =?us-ascii?Q?kExTeGlGJ47zaVbVS3dNBhgIn3ulpk5v4gedy8OcOuAGTWquXQ3cmeh0uie3?= =?us-ascii?Q?yhyQJKjHS7EAJz5soS4vrePZaWyxFoVegd+lGa0IvFhNHWwttddZwbq3ifhA?= =?us-ascii?Q?zqDW+HnzysJMnpvqUHOatIe1eASBM5T4rmiXq7LhHN9p5azYz5gWU/bDtGEp?= =?us-ascii?Q?Xhp0lazHPA53QH3lIsYk1O/hiVBh+v9hklTmdlyN2wKsWV/m7eISDxmr3HUV?= =?us-ascii?Q?cwL3u7/Fpfm2lsJrrh3PeFazAnQL275xX526GeU5bwd4+u5ezFlB8f+o+UtC?= =?us-ascii?Q?8R1o9+aCGaAY5GxAVP8y7GYDvsTEViy5dGyTxditPk1ve+RHASNJpAev8pvg?= =?us-ascii?Q?eFFIxHWDq+CYA/QFN4eIKyJ4RMwdFpvqNPCgTDlp1ENt+3FrNXSiEXzGcTuE?= =?us-ascii?Q?EoPPd5iIc/hBDvi4jMLfeqFWRZkKRDfhWS/+CT5g4k491YICd1Dv+8cVkCLM?= =?us-ascii?Q?1qr5lWZ2GSdubNxtKVG2mxCjHUVPInizPbUC5yo3fn+KvjolfkBuSf9Im1kQ?= =?us-ascii?Q?1ui8CSYaClwfwnSo5vNWVYAtw0TB9n4Kpb9MMI0yfT+Hz/SJXUsjZ3KEDcHv?= =?us-ascii?Q?Lkdp04WmG7G6/Lu9uPhdYZg5ePLrVHz+e9XgqHVpmKFctIC9FUhSWKG7KI1Y?= =?us-ascii?Q?BEWJb66aBbxVtdMiHSdSwheMsvonss92NjIRzYff5pmZQCHFXn5wosnn8ZW9?= =?us-ascii?Q?s/m7mZS0c=3D?= X-Forefront-PRVS: 0345CFD558 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39400400002)(39410400002)(39850400002)(39450400003)(39840400002)(107886003)(110136004)(38730400002)(50466002)(5660300001)(25786009)(42882006)(2950100002)(4326008)(478600001)(72206003)(5003940100001)(50986999)(76176999)(42186005)(305945005)(189998001)(33646002)(8676002)(6512007)(81166006)(6506006)(50226002)(8656002)(7736002)(66066001)(47776003)(2906002)(6486002)(36756003)(1076002)(6116002)(53936002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3092; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3092; 23:xVQ6P7nc0fncnvqSCRCVmNewauuxRAGGdWgGtH0Hq?= =?us-ascii?Q?PO5Ti6yDmLP7PW4SXMnck7nFdGQYxADzl+6bWgrsdSpic74x8KtmLrv7afbB?= =?us-ascii?Q?UgCk6qWBLcfGv+u5BxxZOigII1nvMir7NA9ytOIS54x7i/WAyl6t6+HgVh2p?= =?us-ascii?Q?ZsqJo/LWRXLN7StFY1L+MGknPktPtPspAklUOYFsC88SwmPakzFiKx7JQwon?= =?us-ascii?Q?E1xvTEweGxFn/dQtbHYu7K2O+kHX8kN3e6i/tjCFnrbXO2dFJ6swuU1Hdyt/?= =?us-ascii?Q?U6Nf5jWWXmRR3BfwWbgZ2DJGDVi1bVcHYLTXjJKE6h5xcz1jT512zCIILJ8I?= =?us-ascii?Q?hxynBXAKTS2IA4w5jvCmDNitVBCOK92RQ8zw3PtrNkMQbjHLY86fJ88Dd5g/?= =?us-ascii?Q?8HoNkJBSL5d2Ne8LwuX7gFAGQrWanouFRNWUGAZsNKn/YkoDm/JKJ0a7A+4Q?= =?us-ascii?Q?D3A7Cq6Souqsh2JsnYPCZBjdeaaT8rE7/1icOqAnk3qyXPqNpgcpSvhqnu/A?= =?us-ascii?Q?hceJXjY0GXUQy9eQjkp5v/NSm1HIXz8UoA0BvP7QG3r+Ol/Q7Pw/kTB9V838?= =?us-ascii?Q?z34Iz9VdR2KRLtKmQDbEB5I7ajL73vttxgj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OOivRFlb2I7fg0hPOV2yqVWKHi4yfEjuwOwuME4K2lrM7Fzj7bpfu/JSocdU4Q3/a6wpPzDamE5Vj1+P+uOMnTsMfAPrMs8IYQLmuAjpyUnpuT4TPV88SRo1QVezmjG86D8Dg7Xg8mgaq81fTO6IgYiItrP6EsVaLfxYZQQpeIg4vTpD/FCDVT01GQa26izcEEoM09tXL+0g= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 17:33:44.0320 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3092 Subject: [dpdk-dev] [PATCH 2/4] mempool: detect physical contiguous object in pool 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: Wed, 21 Jun 2017 17:33:48 -0000 HW mempool blocks may need physical contiguous obj in a pool. Introducing MEMPOOL_F_POOL_CONTIG flag for such use-case. The flag useful to detect whether all buffer fits within a hugepage or not. If not then return -ENOSPC. This way, we make sure that all object within a pool is contiguous. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- lib/librte_mempool/rte_mempool.c | 8 ++++++++ lib/librte_mempool/rte_mempool.h | 1 + 2 files changed, 9 insertions(+) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 045baef45..7dec2f51d 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -368,6 +368,14 @@ rte_mempool_populate_phys(struct rte_mempool *mp, char *vaddr, total_elt_sz = mp->header_size + mp->elt_size + mp->trailer_size; + /* Detect nb_mbuf fit in hugepage */ + if (mp->flags & MEMPOOL_F_POOL_CONTIG) { + if (len < total_elt_sz * mp->size) { + RTE_LOG(ERR, MEMPOOL, "nb_mbufs not fitting in one hugepage,..exit\n"); + return -ENOSPC; + } + } + memhdr = rte_zmalloc("MEMPOOL_MEMHDR", sizeof(*memhdr), 0); if (memhdr == NULL) return -ENOMEM; diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index c3cdc77e4..fd8722e69 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -266,6 +266,7 @@ struct rte_mempool { #define MEMPOOL_F_SC_GET 0x0008 /**< Default get is "single-consumer".*/ #define MEMPOOL_F_POOL_CREATED 0x0010 /**< Internal: pool is created. */ #define MEMPOOL_F_NO_PHYS_CONTIG 0x0020 /**< Don't need physically contiguous objs. */ +#define MEMPOOL_F_POOL_CONTIG 0x0040 /**< Detect physcially contiguous objs */ /** * @internal When debug is enabled, store some statistics. -- 2.13.0