From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20075.outbound.protection.outlook.com [40.107.2.75]) by dpdk.org (Postfix) with ESMTP id 689F82C12 for ; Tue, 27 Mar 2018 10:38:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2ARK3yd4jrMcJJT05y60usHxGqYKFSq4SnVqxjYJt68=; b=XmSkqzyiJRE7tdOlAwkCIlXYSgj/qlu1/7jr6xScySchlRnA/1KBy4YlgNaqgP2IilwKa/pespGqoFB88cILGmM6Yu3ZioXejwDyKmwEpDbc5ysqkNxgI4ZARzCPnC2YUe3Jr9KTVNFJMogTjqRYTGe9cC5seiTjDh7bFw8s/5U= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from [10.232.40.129] (14.142.187.166) by VI1PR0402MB2781.eurprd04.prod.outlook.com (2603:10a6:800:ad::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Tue, 27 Mar 2018 08:38:57 +0000 To: Gaetan Rivet References: Cc: dev@dpdk.org From: Shreyansh Jain Message-ID: Date: Tue, 27 Mar 2018 14:08:31 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR0101CA0051.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::13) To VI1PR0402MB2781.eurprd04.prod.outlook.com (2603:10a6:800:ad::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 030a6b6a-14b8-4dce-ab6c-08d593be2eaa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB2781; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2781; 3:DZCdm+jtVi5dnGYI9i0V/l0C/3j2TSmUQWVO2mP+1+X54AC4zNLUwks3nLACTnA2AuCVJTkzFhSO+eDBk3ld7D2KWHc2hiHCqgoGJHFrJw83xte8olqYZe24bl0DXtn5VnZwmtNsXlmUkBV+82wXP9HrBquT4bt3WeFG+lN4ot+WVIQaE7CNC7S6CbLGSWeawWF07nefyfdMfg7w24l5ho/rBQD8VdAKvDnsATLWymI6xjtESlwSfqKcadQvL5yz; 25:E0DN64ff7e6efELKpAoLgjy4yQfkOJcokYXekZOQwBcUNAZVNsvP9SwhkqMtkaWjo18M1KSvkNylFlpt8OpGipAbioapT3aczdJJVfn4iTjXW4IhZs4fNm7Fh1s3VcjWwM81Xcr9zf+8FrHJscokJHovf9s8yM9SEQtJ+kY61Kxa3AeRBXicPvfLHBqIDS6wRv2tXiWQ1dOuaTPP40Zi/0DyKVVhi7/aK6WMVI2S72BWDCiYSQspMVVt3PraK2Q3BWzjnZNfrXj/bzq3HDWx4ugdKS6Q0/Yqtnt/zKkMbrNAJ38wfKHnYfVpLxVQRysTUsu4BiFJFbeG+CT5qIAxJQ==; 31:K9AxqUvdYHPdqVh/+QQDWQ94mlhZ1OIu/wCmC4WTqDErtuRRrykYpoSREIPaUEM9Pgp3eWGSl62A1mK361cdWkImMWRmRfLZq6HigcWU5DicQ0HBF5IaJOtzPxCzQxYFcQ7jzDiVRJWq2zl6xuQS3S67j2qlhyfCP3i34w//8jfCiqI+HWn8pS/cGZ9ww50DRk9r+VJNgcaX/00+euP1gphQwhZTzhY5HK3d/svLsUM= X-MS-TrafficTypeDiagnostic: VI1PR0402MB2781: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2781; 20:j6I/r+H7LwVPbeosPjmxRSbDzokcshHAyYvzlfkGoliQ5gcE5TgH2ggFM+buYZslIVsyLtOE/e1EOqANUKDvHLaG497Q2eudFmyWMSI9FB/geUAmTjoTt9B7Q8VL0O2Bwvc7IAupjVgleMHSIYZDUHi2nCAT/4yX8m1MEboeZGGTEvQ5JJxp1/bgpeknTxEGyQQh87ALL4TNyc/MuVhnQ+9ki9sN6PoSu5YwCx8AfKdqaJLlrnC+CVH725e/AOMxd/bW8R0OnvYzsXqRbsiNHCIjooeFm3v9mUSIcKvpJoq0q4pYW33nacuM0AOOZF1r4CCzrvz91hdMAa8KlOteF039km/UQDrEcHHT0c4yoxCVls4Il+shzGXXr864Ic5UUJySM7UxUUfaIzoyHGSV81081cLAWhhRi1CM+2ZdDpgMsED330SS5C+7au6XFt6ySwnljA2QuswuRLp1CjS8m6VpRQXqmb8bBaYus/JxBN/b23npJhkJD7x5Txthywa3; 4:kA18skt9PsVJkqAQl8znY2HBtEvYnQ4tqzoLulJTlNQa572VqFDilTuL37TX+LE43Hg+bO7z+6yuOyc0LgNNwrz0GX/YQOIYOo7zzGaf+qnKLBFP3CRJeI18VqbLPSOq6Gt4BngldE5Nnp8CVzicJVHBmDPVoRhvK6miheLRDIbJGlD9SdcK4uEB2zZlCdsOzydh5mJ3P3mLC+lz332oEpubJzJ0VOkHbdqENtykojWM5oXLpVbv+mVZEo96Np106OY6AMuYSgvF1RGAcJj8Ug== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231221)(944501327)(52105095)(6055026)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR0402MB2781; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB2781; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6049001)(39860400002)(376002)(396003)(366004)(346002)(39380400002)(189003)(199004)(5009440100003)(2486003)(31686004)(4326008)(77096007)(3260700006)(386003)(59450400001)(50466002)(26005)(55236004)(53546011)(25786009)(230700001)(316002)(16576012)(52146003)(3846002)(6116002)(64126003)(86362001)(97736004)(476003)(186003)(76176011)(16526019)(52116002)(67846002)(58126008)(65956001)(11346002)(956004)(5660300001)(81156014)(8936002)(81166006)(68736007)(65806001)(47776003)(446003)(53936002)(23676004)(229853002)(2616005)(8676002)(305945005)(7736002)(66066001)(478600001)(2906002)(65826007)(31696002)(36756003)(6246003)(6666003)(6916009)(6486002)(105586002)(106356001)(486005)(486005)(110426004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2781; H:[10.232.40.129]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA0MDJNQjI3ODE7MjM6Wkozbzhqa09mNDVSQXpyd3RSWFNTOGJX?= =?utf-8?B?V0hTOHBWQjE2SDhHOFRWWGNBcVV6aTdLWUNLaUVFWHB2RWpzVlhVSkhXekdV?= =?utf-8?B?Z3NLTGFoQmNPZXluM3VhNTJlQWVlbmJtVjNpUXVHWXk2UVQ3WnlIVHRxZEdF?= =?utf-8?B?ZFA2U0w3RmFNb0V4Y2duWDZWQlRsclIzekw2b0pWSEp4WmZZZituaUg0Uktr?= =?utf-8?B?T041MVI2OTFYVUFnWTIwVkVyNEIxZW5MTFdFcjZZU1UzR05EanhURFJOK2cy?= =?utf-8?B?UXpwcFVEUGNwRkd0aUtjSlVhdWdRY056U3IzZUF5NVBneitwbDUzQmcvYSt4?= =?utf-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=; 24:TCex16pOS1gR5+0b713WhVkuz2KWswWGZ3wN+NhmK4hwafXdgoARCt9wnuq87hOWbOiDvINCKkKm87D7dbhkD1BX6Tl5PIfEv2+3VL0TvyQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2781; 7:qRLuv3ir61EtJ1v9fzS6pGESjtM/175jKGCt0C3RYWDGe0Ml7C1DmpFlAokIbEVEePiwvSiHQ5kc23krI1S7KhHPkni7o47o/EVW//tkN3whtIg7MH/4gyIOIujkU1bNf8xJ3/6I78xHlQn8GE5NMyKLqWnNVaeqrz6ivLdtbgGZFtJCculFTHRGSSQgiJO4+/sCMXYnzAjGAUreOlNr4rhJRaMhA+0tAzLO5dCdKHUgmoF3LPnUda2DtUcikTpc X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 08:38:57.0674 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 030a6b6a-14b8-4dce-ab6c-08d593be2eaa X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2781 Subject: Re: [dpdk-dev] [PATCH v3 05/20] eal: introduce device class abstraction 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, 27 Mar 2018 08:38:59 -0000 On 3/27/2018 4:48 AM, Gaetan Rivet wrote: > Signed-off-by: Gaetan Rivet > --- > lib/librte_eal/bsdapp/eal/Makefile | 1 + > lib/librte_eal/common/Makefile | 2 +- > lib/librte_eal/common/eal_common_class.c | 62 +++++++++++++++ > lib/librte_eal/common/include/rte_class.h | 121 +++++++++++++++++++++++++++++ > lib/librte_eal/common/include/rte_common.h | 1 + > lib/librte_eal/linuxapp/eal/Makefile | 1 + > lib/librte_eal/rte_eal_version.map | 2 + > 7 files changed, 189 insertions(+), 1 deletion(-) > create mode 100644 lib/librte_eal/common/eal_common_class.c > create mode 100644 lib/librte_eal/common/include/rte_class.h > [...] > + > +/** > + * Class iterator to find a particular class. > + * > + * This function compares each registered class to find one that matches > + * the data passed as parameter. > + * > + * If the comparison function returns zero this function will stop iterating > + * over any more classes. To continue a search the class of a previous search > + * can be passed via the start parameter. > + * > + * @param start > + * Starting point for the iteration. > + * > + * @param cmp > + * Comparison function. > + * > + * @param data > + * Data to pass to comparison function. > + * > + * @return > + * A pointer to a rte_bus structure or NULL in case no class matches Trivial: ^^^^^^^^ Should be rte_class [...] - Shreyansh