From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0054.outbound.protection.outlook.com [104.47.33.54]) by dpdk.org (Postfix) with ESMTP id 97B487EC3 for ; Tue, 15 Aug 2017 10:07:53 +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=zdoqIi0VvgUyE2bwsVdVjvr1kTwnzQVumZpJOh+hrXY=; b=Vrenu47RUvdFW9NmuaCzf1P1C1S4JkgiQVnAVNqW4JHxVe7nenXuHDsmyGX/j8BlskWm/vPpSVtTz09EkNHtM6FDPzlo047t1C8BcVuggkm65WCZydu41WQ15cLoPVoj41adIuDuCLICkAEg9/L1tEOnkau7ZtPQYa6UG0fHUPk= Received: from localhost.localdomain (14.140.2.178) by MWHPR07MB3102.namprd07.prod.outlook.com (10.172.95.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1341.21; Tue, 15 Aug 2017 08:07:48 +0000 From: Santosh Shukla To: olivier.matz@6wind.com, dev@dpdk.org Cc: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, Santosh Shukla Date: Tue, 15 Aug 2017 13:37:15 +0530 Message-Id: <20170815080717.9413-1-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170720070613.18211-2-santosh.shukla@caviumnetworks.com> References: <20170720070613.18211-2-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BMXPR01CA0016.INDPRD01.PROD.OUTLOOK.COM (10.174.214.154) To MWHPR07MB3102.namprd07.prod.outlook.com (10.172.95.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92909ed2-201b-4590-8a45-08d4e3b4b9a4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR07MB3102; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3102; 3:WhShUuSzSb9boQ4viHd8e000hQ7shfhMkSU+ZsMP1A3IXJADX8IVgVamGMWumj6oTQXn9hvk298ghAqlOnXwHCMMkJIMSN34kZBdprR2bSmN0tedAbaVGMiwVlRvebDphSETfgFWNtV8AbdnDIYyG07oMNEVg6puyjCF8qEfk+z1hhalc9FaFp1x58HBj8jBydFJkgvUvUZRZnmlWjiRgwxNCjxcWlnkS1+rNq3Uz1EhIOdrOzktsVApYkz1AASl; 25:lrYfkjsDNbhMb0vatSlUuCytz9BPWc0uFtLBZpzXBrJUAlTxELR27XM0TFDBWnjY3XKzmkvPGbNFTVdp59D7yu5mOVF7eh2GXdDSLBFHUuH3Ez/1qC24P+yFyp+vXV0ok8Oo+ImYZm4IwlqADLIJl6kXKwQoVvYtoB60bokjMoJzpD/5nO9drFhAEL+hBTL02ZGCnHEs/Hf/0j6h7RdvhHETMWLSv9sNMgzVBBAs6+G4623/A9X7iPjqXV1h0e+ZheUBZTLsPWHa3aapz7fvIlv8pZus23wd2XgbCC/C8Xc6kEEGXT2p7IbgGvNr6n/p4fLyEex8N2bA2WU3KFKwew==; 31:K4Uri7xrgcbgCx5y2KajkuGb8bvuQ/a27YNTv6yOek9IJGsdQS9oEcX6h7poIXIr5cwNS1jLbzSOMg7DJhj7syINz7r2UkfdUWSCek+QB7YS6gdMQi1uppDo234wYhen6gpuO2jOz0nz82gEEU+VLcKJYz2fDoiZcSEcDdgMqN6P0/QlBpdHsze2TdPvWytktobWjeYplXaYcGY2NSbD5YnWTI8njOjnAERvCJrYasU= X-MS-TrafficTypeDiagnostic: MWHPR07MB3102: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3102; 20:p65JFL/TNvCHFzdMaY2Ql3oL7iOq+0/mKaYRapnIWUpCUoQ0dvfV65MTALfaCRBqo+bqx//QvFlZyg8xClb0VRvO6yLKt0T3rzzRQQJkAYDCvtnQWMKs/PSbj5T7atSMyxzXHmy88YxCSJJnmNvq/Qfr5qSTDhMDXpj2C11cv6ZSjFziexDteU8a0BPtXFjobhsSkfRqEZKEoj2OKlxBekwAhLnKjaMrcEzPfa1v5NtEufcfPrsOjBHP2wU7pb0qweCl36a6wPGM01ev2XU0rVcSpP8uKxitLe3hWf4/iOoI6lxLNPi/49ZbOymVgeSvIqriILhyCx7JUHhbZZgU3ss4sSZqo+77h5xH2W2CMtx0aSWNDTCQMZUuEKF/P4Zo/a0+BYMfj/BNiR283574V6BjfOu7DppaRudTiT+r+1Yu65K+nltk6CbHEAMtbh/NPikrJn/Ux8UL5Cc99s3Xz4zcH6uXImplzEZiaqXuM6TOmp0cBCwCIARJpJoFjWb07aS80Nsx92UQUij4PgfK6MGF3I5z9f5BR/e60pDKeSDJI+R/3Btw7wApbJhGbzMIkPbL1t5SSDMPHHPk1jRynycl8O8PUsfBFMZ5pYMF8EE=; 4:yoD2FK6yS9wM3VZl68upZL7QsJ9iHcIsLeJkTcVqf3AvNlgwyGN9y1ohIQvqWe8h9VgO9fcO4KevrUhBK6H8XlUjern2k8cKOUUQHOba6wfUcRMa0ZQ2y9NCvhAlghuRMP7jzt3dDzKspgGSRHgG6B8H4tyyywYRvuiCQHDRlBx4Pows4hPhqAtfTBGtPfegDMSzbEjgnVBHR76vwZXY6VcIwdPrWaIXdwXGkdQqHTwp7PXVfqGJ2iubfAF9IQ/9 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123555025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3102; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3102; X-Forefront-PRVS: 04004D94E2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6069001)(6009001)(199003)(189002)(6116002)(81156014)(6512007)(81166006)(305945005)(6306002)(66066001)(6486002)(50986999)(50226002)(76176999)(47776003)(8676002)(68736007)(50466002)(48376002)(101416001)(33646002)(36756003)(6506006)(7736002)(53936002)(8656003)(106356001)(42186005)(2950100002)(6666003)(5003940100001)(105586002)(5009440100003)(4743002)(97736004)(42882006)(107886003)(7350300001)(25786009)(53376002)(4326008)(110136004)(3846002)(72206003)(5660300001)(1076002)(966005)(2906002)(478600001)(189998001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3102; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; MWHPR07MB3102; 23:/S3lDnLTy/3h2gztHq6qw27C6W94mRnV8l22X2VWo?= =?us-ascii?Q?bVWFCsf5aI1tYbTgBs5eH5kzHvUAFPbQaNHstywzeJqjSNjgcV35OOCrZZ1K?= =?us-ascii?Q?y8rC2qiRcNaGIp6ZoRVa67MHy5DRurwvzgUBHxq9XYyPtHlsEa1GT/UKw2+q?= =?us-ascii?Q?pidrQhrumyH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osFoHmP0tqRBQN3WSWmnjsBamEoytZgWpnZMmzeYiE/HK6N3GAtY4udgO7+SUCT/ZRYv1nbrEdN+eX56M3r++mh1yzpwMhjRfcTBxUUvc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 08:07:48.3175 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3102 Subject: [dpdk-dev] [PATCH v3 0/2] Dynamically configure mempool handle 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: Tue, 15 Aug 2017 08:07:54 -0000 v3: - Rebased on top of v17.11-rc0 - Updated version.map entry to v17.11. v2: DPDK has support for hw and sw mempool. Those mempool can work optimal for specific PMD's. Example: sw ring based PMD for Intel NICs. HW mempool manager dpaa2 for dpaa2 PMD. HW mempool manager fpa for octeontx PMD. There could be a use-case where different vendor NIC's used on the same platform and User like to configure mempool in such a way that each of those NIC's should use their preferred mempool(For performance reasons). Current mempool infrastrucure don't support such use-case. This patchset tries to address that problem in 2 steps: 0) Allowing user to dynamically configure mempool handle by passing pool handle as eal arg to `--mbuf-pool-ops=`. 1) Allowing PMD's to advertise their preferred pool to an application. >>From an application point of view: - The application must ask PMD about their preferred pool. - PMD to respond back with preferred pool otherwise CONFIG_RTE_MEMPOOL_DEFAULT_OPS will be used for that PMD. * Application programming sequencing would be char pref_mempool[RTE_MEMPOOL_OPS_NAMESIZE]; rte_eth_dev_get_preferred_pool_ops(ethdev_port_id, pref_mempool /* out */); rte_mempool_create_empty(); rte_mempool_set_ops_byname( , pref_memppol, ); rte_mempool_populate_default(); Change History: v2 --> v3: - Changed version.map from DPDK_17.08 to DPDK_17.11. v1 --> v2: - Renamed rte_eal_get_mempool_name to rte_eal_mbuf_default_mempool_ops(). (suggested by Olivier) - Renamed _get_preferred_pool to _get_preferred_pool_ops(). - Updated API description and changes return val from -EINVAL to -ENOTSUP. (Suggested by Olivier) * Specific details on v1-->v2 change summary described in each patch. Checkpatch status: - None. Work History: * Refer [1] for v1. Thanks. [1] http://dpdk.org/ml/archives/dev/2017-June/067022.html Santosh Shukla (2): eal: allow user to override default pool handle ethdev: allow pmd to advertise pool handle lib/librte_eal/bsdapp/eal/eal.c | 17 +++++++++++++++++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +++++++ lib/librte_eal/common/eal_common_options.c | 5 +++++ lib/librte_eal/common/eal_internal_cfg.h | 1 + lib/librte_eal/common/eal_options.h | 2 ++ lib/librte_eal/common/include/rte_eal.h | 11 +++++++++++ lib/librte_eal/linuxapp/eal/eal.c | 18 ++++++++++++++++++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 +++++++ lib/librte_ether/rte_ethdev.c | 18 ++++++++++++++++++ lib/librte_ether/rte_ethdev.h | 21 +++++++++++++++++++++ lib/librte_ether/rte_ether_version.map | 7 +++++++ lib/librte_mbuf/rte_mbuf.c | 5 +++-- 12 files changed, 117 insertions(+), 2 deletions(-) -- 2.11.0