From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0074.outbound.protection.outlook.com [104.47.36.74]) by dpdk.org (Postfix) with ESMTP id 940D09FE for ; Wed, 13 Dec 2017 20:56:15 +0100 (CET) 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=qL36lBFJ4bJIZpoXisPHy0dyupwFK8bCFtBPRDdpvDI=; b=DGQlWuN5YB6/9kVBKcY4k61IUfu3J50wuO78Ji7w8cYeruYxx/eMYhd3XexENJM50PBRRYxw0zl+XRKjmHSKl1mIS0+HT0aWlnoq7hrR8i9Z5Ub1/yt3sTJ1dcdveqy9xndzBQleltNLXAc2H5R9GS9GEbWf2b91gPEYXE/P+wo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 13 Dec 2017 19:56:11 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, jingjing.wu@intel.com, bruce.richardson@intel.com, hemant.agrawal@nxp.com, ferruh.yigit@intel.com, thomas@monjalon.net, olivier.matz@6wind.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Thu, 14 Dec 2017 01:25:35 +0530 Message-Id: <20171213195538.14290-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: HK2PR02CA0186.apcprd02.prod.outlook.com (10.171.31.22) To DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c01b1d7f-1ef3-4ae8-3492-08d5426390d2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307); SRVR:DM5PR07MB3466; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 3:UFQa43/eaP0jCikq4E+r5N35mI4vQS3SvqQbYr7TAz5X8qbaJRPUsGyZ2XmhdrwQOZ0WwMNNec74bEs9ssK/Gu+RtFvRo7dHZh6pJjCJrlgb/HtPmh1gcRJksGyhCubYzGdZTraxiy4pT1IBfLEHa+WXQTDDLJ1lHGML0Ofex39TJfnaNksXeCczZYek1BYc49WH8mCm8iytbSzyta9sV/YUCy9t2IPzNnXBMpF1mNTVGRayRxbFiYp3b/bNPt6p; 25:m08FBGHXeoclE2BqgCY5BU4w6pE6cQJpnprbOYqYfZdQBaKs4J4l+8qM0ZV+CIHr74wgz9/LGcHKwzWWPJyhsM8wB++I6ChHuFT72rmCPWTPtTL5Dz/9hi0UErjRgA0UmjjQBZTN2mTJ016focXaMVAafAeAYXmcEt1AykpNRQ4MwnJ2Chifl6c/BOkRflMPbKIQaJufGQpPT3WjH/cvdd7G3nK6fbDE562NKLFaDm7c9+i0t2fZ2fLl12hAuOrySjjIT25CIZtzbpPBol83388yozrVNamvZ9srbxZt3ccCdY3zTEGlN4fuoY4dLhTnGpWL42LKwjE4Q8/RNck4Zw==; 31:jOJIU8W+9ghFrNvhDY/r0PG869VFOUrYRgb3dSy9AtsVG+65wJi+l6P682PMbKi+XsEhhQ0a/teTI8OkP2nYDThmKwpU+EHBgXaVS30FmxFy/edsFzFcaQ3Lr0oLlnvyWZ7Ibu8yKddvOpSPu1d/r2lks7NL+GuWZw5a514ibUxZTsnNYbqNGvLZ097yW6ZFFgDj0e6QIgzJFdlfcJG1d+LejKmqnjbJMMESVTa8iZc= X-MS-TrafficTypeDiagnostic: DM5PR07MB3466: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 20:EpydaMb9GVz+kDMAhD1LwI6hlWalEFxI885NqeBQ1nj3OAhi7XxE8A3fvBC2Vo5Wz5FJ1N7BjOq4GDpuAisgBznpSS16Lh1998bdprNX0dGv2p0xLxw5iyh5k+sy5k4+SJ+l304FrlksM1LVeu7hZKKvmwMDugciCR4GhwRChoIlrLfKPm4flxcj/AaZAT8YK5L6DV83xlrOgyIuZxQFeOay5NZ7RAGUwUJd5NanCWHh8/jszvS/zF2j6S7xf82ayP/CERFIAZVAZy6tQIkipfD5R4q+0fzNb6pk3momd286Wuy7ftX1tcaxuxllHPgaZb5FIm0oi2l1bJlXZzRctm5x+nCHzyTLQzjv50Iq+HuTDmrmYZO4ABeeVdfsYe6K8S78nf73TDrl35KG14djVlheJ7qeiv8XsPG9N20BB+bmy10wp/6fETtjLAfkdsKm8jtdbTPEMiBasX36Nf4X+8W8LY++rEbwewTzC01BOLMObNjkC4e7k/TqntrND8ColtN3uQCsEktZuxu5BhEUhX2QzeYkx0ggIbljlbGfHTzhgeuLxuVtPJQ3P/msvk95zyWXksuw7Mh06LQ6iLZQVK/QYsmpP4/L/M5yh3efivQ=; 4:tabOAjhvDa9KPdrA4RN8WYrQ9qi4pM+zHCcsDuuUS/BlxUpdf91JuA2kUsXrwu7aD2dV5z8BeZdpxX9CwcPc/3hjkvKCyal+2rKTluBuYtjIVS1pkE0gN+mMev3vOuhgdIy4n81L3DVj8oUl/sOjN7lkmtiD4ItQKq6eKj08FzVJOvyFwV4pCOLg02tXG20Zar18ow47GhxhufIoAc7YWSMstpJrnI2YLggd93E6DUxzZAZW/c+o8ks2/4GxYEUC1U5Hn9I/7FR14BL78MzUww== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(3231023)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM5PR07MB3466; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR07MB3466; X-Forefront-PRVS: 052017CAF1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(39860400002)(346002)(376002)(189003)(199004)(97736004)(6512007)(47776003)(2906002)(36756003)(1076002)(5660300001)(52116002)(6116002)(105586002)(305945005)(7736002)(3846002)(66066001)(6486002)(72206003)(50466002)(50226002)(25786009)(48376002)(8676002)(81166006)(81156014)(478600001)(4326008)(316002)(8936002)(68736007)(16586007)(53936002)(6666003)(8656006)(107886003)(51416003)(106356001)(16526018)(6506007)(42882006)(5009440100003)(386003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3466; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3466; 23:0XJP/4hqLgic8yRfGyXTMNQdH2l7h6jOVbFBou1La?= =?us-ascii?Q?1b7vlofZr/8IgKE0K4qzUSWI8QgQ+ye6lc8CocvbU6HvVXJHbvKGfCNWmJYf?= =?us-ascii?Q?w4cvk6wOBdsBoEuz1YB7s+FEmr7QLX8d0yr2jT+vOnexyUnh+ixx0u3T/lbF?= =?us-ascii?Q?mDoFY5LGajHnHbLFkcs3+KN45ZRbqtcunwEZoNdmG63qNNKdBS1bt4e3Mg7L?= =?us-ascii?Q?VStk1iXnGhlKI3QcGKIHbfxQtwGDNCMoUDVLaLWtShg5rAvgK3UG92mZdWHJ?= =?us-ascii?Q?/kQWNDGQtgM6SuB+n2jMHx1l1bysnej+uSL1ayYee74zdU/IsrALlr3Xew72?= =?us-ascii?Q?l8E2HJ2WPD5KelEONl4YCndSBmsKLVmvjtCZ5vG0NKPMypfqESNbp+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Pbk4dnq49yvp2Gom08eAeVXdtROCYH0KyF2RDp4pufEqZKT7QKwDGHljl58IoFFKlT+fYpNvZScDuxPvcL7MhdapiXRXhQ8PVhZ7rHBq/WOR+0t2tpHgMJ6bTs14I2QDrLBYjeuxHgRUeSwAAUy9hQT0o41WTgQ9Fjrr2EcGrMcnKXmjW/0wp0jAMGgKV/tHOkSW6XdIiir10ZjiL3N92E2b21E9zpMCfPBRaw4gguhrb2mTXRp4EK578O7oH9edu84=; 5:MUSSfBIQi8pQf1zEFoJw1sJKg/THnVWlUuztHNS21Qf1TrsHEOO/D0G+IYwMLgGqPRbBjmZgxFMmy6b1f9C8HhveN9Be8uvIcbsvtzil5J3ukNjjKSp0GxNtkUsjNLEJj1dbVbb83kLWA9IIrCTSGjRYZifM2aWbik7q1BGUdlc=; 24:2UTy0ZvwVurcNed9+Rm/8OouLhb9QOMabNFav1HU2LKvOVZuMU8Fxv6Vp14kLUOPdsJ0rF2s2ZCpCGRJ38glSrApUqpo8LrlshIYmE8elxQ=; 7:K4t+8X3zFyfVg7T33ao7EF1XprWPtOMBVwl0lE0h5an2F/S8WarFLdriJYumuKMKqmWWOwxX2ZsMaXwIgDfj6W+k5/sCwxGaicFNHXZAS2jhyU4uA6BWVgGQ6++u3nL2m4ukoYYUYq7dv8sHPxhZoFra3Or+ifw1dWX8YT5RRLuDy3YwriiQ+oYpt8EIocbsgdnKxrjkarF6RHJWguaYpBa2u6WnCte6/MVYnq6RP3XxyVJAjHB7xSuEisumeYXC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 19:56:11.1370 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c01b1d7f-1ef3-4ae8-3492-08d5426390d2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3466 Subject: [dpdk-dev] [PATCH 0/3] ethdev: add API to get preferred mbuf pool ops 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, 13 Dec 2017 19:56:16 -0000 This patch set provides new API to get and set the preferred mbuf mempool ops across all the probed ethernet devices. The API depends relies on ethernet devices to provide their preferred mempool through `rte_eth_dev_pool_ops_supported`. Currently, this patchset modifies only testpmd to used the API but it is aimed towards modifying all the examples/tests to create packet pools based on the preferred mempool ops. Pavan Nikhilesh (3): eal: add API to set default mbuf mempool ops ethdev: add API to get preferred mempool ops name app/testpmd: set preferred mempool as default pktpool app/test-pmd/testpmd.c | 2 ++ lib/librte_eal/bsdapp/eal/eal.c | 6 +++++ lib/librte_eal/common/include/rte_eal.h | 9 ++++++++ lib/librte_eal/linuxapp/eal/eal.c | 6 +++++ lib/librte_eal/rte_eal_version.map | 6 +++++ lib/librte_ether/rte_ethdev.c | 41 +++++++++++++++++++++++++++++++++ lib/librte_ether/rte_ethdev.h | 12 ++++++++++ lib/librte_ether/rte_ethdev_version.map | 7 ++++++ lib/librte_mempool/rte_mempool.h | 12 ++++++++++ 9 files changed, 101 insertions(+) -- 2.14.1