From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8F7B7A0519; Fri, 3 Jul 2020 11:13:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A15E91DAB4; Fri, 3 Jul 2020 11:13:23 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00055.outbound.protection.outlook.com [40.107.0.55]) by dpdk.org (Postfix) with ESMTP id 576661DAA9 for ; Fri, 3 Jul 2020 11:13:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T6cbWdRwvR6N0ZhM3ezoHQ5vRQ2HtPHH1fj4EgA0QEhRhxTW+tlNaiVVRAFiiswbMWwOC2Lpql4Jj9NTJOgt/OCpZppcTc5C+VlIMTrChDah/fe6lSQWP0SRcgoKhjIAelWeo6xBylnEs7I+R/QAhvTAuWH6QQ2fWYUxnofrC3ym/Ru1XISGJ4A8vplea5ung+maLVf7aFS6ppS8sPVq8TlvTzc9VJhTjshDAARPeWQu4vGHehSiHD/ajwJIenpy2cQp8yJmOuEPbugV6TF660pvcf7++pKQlwB8jLCnokuClhQBJJtPzrqmC4JvVr68z4WQUAa6DRdNAmCtFLObAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u8+VAkRbLivlLv+kZYmk0wYzc79x57Szokxjs7EpOUg=; b=KsSLnH2WRtMpf8kOxajyfu9Xaw4AYGNSF5ZvDjqngTd0hbwVS/eU+/64nuw9sPBlBRW1A5v642+RAH8SAv6JMHkE1fpzbrm9jwm3PPHeLHrii/QdYFekuIEEK0NcuT45Qhe00ok5XVooMMZSZHWM22LLNOi5vfy5VerdRDaICjDLc6owAn1pvdgVYpVLtSnAToAzacc+7/0Zr9yLXzVxeVxW3VCVD66+/buCeCHPnsmQjCgmXB/cD80TEu3d61X93c+uezNTN4Bc6m3ZU5ZPgbOvYhtW+3sj5seEMEuCWfYgbm+D500Ldhykoa8MhEpMdq6boMVze/LMSstlU7taSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u8+VAkRbLivlLv+kZYmk0wYzc79x57Szokxjs7EpOUg=; b=AdsPAdO37js/5P1QYGoses2zG9sNT081YJKaMC9EKnjTMldj9uVoL9RzTZyE9DU3mB/fWcdxGJcEJUecTUV9E1FYw1mOisAFWYF4BDfB/c49fFvMtlmk4nt52kKfEAaxXxVkK86UuKpbCI9BBsBatV18gHIwrXtanSvtEQAfDJM= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB4866.eurprd05.prod.outlook.com (2603:10a6:208:c0::32) by AM0PR05MB4353.eurprd05.prod.outlook.com (2603:10a6:208:67::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.24; Fri, 3 Jul 2020 09:13:21 +0000 Received: from AM0PR05MB4866.eurprd05.prod.outlook.com ([fe80::d44d:a804:c730:d2b7]) by AM0PR05MB4866.eurprd05.prod.outlook.com ([fe80::d44d:a804:c730:d2b7%2]) with mapi id 15.20.3153.024; Fri, 3 Jul 2020 09:13:21 +0000 From: Parav Pandit To: dev@dpdk.org, grive@u256.net, ferruh.yigit@intel.com Cc: thomas@monjalon.net, orika@mellanox.com, matan@mellanox.com, Parav Pandit Date: Fri, 3 Jul 2020 12:12:51 +0300 Message-Id: <20200703091259.2108996-3-parav@mellanox.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200703091259.2108996-1-parav@mellanox.com> References: <20200610171728.89-2-parav@mellanox.com> <20200703091259.2108996-1-parav@mellanox.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN4PR0501CA0006.namprd05.prod.outlook.com (2603:10b6:803:40::19) To AM0PR05MB4866.eurprd05.prod.outlook.com (2603:10a6:208:c0::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sw-mtx-036.mtx.labs.mlnx (208.176.44.194) by SN4PR0501CA0006.namprd05.prod.outlook.com (2603:10b6:803:40::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.8 via Frontend Transport; Fri, 3 Jul 2020 09:13:19 +0000 X-Mailer: git-send-email 2.26.2 X-Originating-IP: [208.176.44.194] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cd03ee8b-09f9-4511-161a-08d81f31547c X-MS-TrafficTypeDiagnostic: AM0PR05MB4353: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-Forefront-PRVS: 045315E1EE X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kuJ5OngoLHNEEp6Wzk15PfZfoQoNAKSzlv1zOEWgR8rw6/CZeuTqfHSW3PxWToOrmwMNJmVDc0UtSy2jJf75LBfY/nDQCG9zKX3B3L0LTNLVfgycWmS3/VDcdfn35hyO9cXhPLQy4RUu8Wcq1HEicT1RJ/9mZ5ZwXqbb/dKchTrnRl90BBl6aJpIJwy3o/Rqdr8nKlAk0KV3cJsoFWZpuS0TD87cgn1qRQZhhNMW4tnB01dcFfDp73iy7Znb4R59Lm8wFL36U4ZVn8EeKBwiVGe3oHCYCC7zV10TNqg5bk/jfQT9Bfgpg/fTGqRr+kF6 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4866.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(346002)(376002)(396003)(39860400002)(136003)(66476007)(86362001)(1076003)(66946007)(4326008)(66556008)(6506007)(6666004)(2906002)(6486002)(107886003)(478600001)(6512007)(16526019)(36756003)(316002)(8676002)(186003)(956004)(52116002)(2616005)(8936002)(5660300002)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: JPHkWfw37YK0KPuYVo2QgGGSeo8hfivAEoMFUb4em73q3FUSho5q52RzYSpsdZBmwWSLJ+FMNbD770jQjvwNnlmtvDMvFt7+zvNSgd3lrIcbC7ZfOypNY7Zy+OgJI3dCgIojNCJoxswuvTk3meaDX6VRAkEFYHQm2m+K+VdV9ym6znfTM68HOhaOe1qBS0OnJViHbzUpfoVEZ7RpTEBTlTB957j1WaA7HnJIr62GyAxyti0GfYLJQ+riDNdg+sl5vRPleR1goHOqErt/9U5ucqmm8PiR+kX7Z6CJJlQNao452Li7mVFN7YWwZ5S5jpVxuiLg18BvxVZG8nPwQBSA0AP/WdmC4JHKTymyHRKLE4jCtC/pGgUZhwiXNX/wacQy1qG9JEtTt5nPKezdjEFMJr6oFagMAkhcqrhnrGPnCeqOT8+5jyijjuFljcHubVKrmjx3DGS1hxOEdVZv+grImYHi++i/5DhLKYmufsr1pnD3usXWVZDGEt2CckQWAlYR X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd03ee8b-09f9-4511-161a-08d81f31547c X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4866.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2020 09:13:21.3036 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v8291eGpCul2muX+goW76DcMsWCM3KHfVj9yEJFfU0MFN58HZPt7AKrtI2Wop8XnU35mAUiMLlLhEKWexwkTMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4353 Subject: [dpdk-dev] [PATCH v3 02/10] eal: introduce RTE common initialization level 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" Currently mlx5_common uses CLASS priority to initialize common code before initializing the PMD. However mlx5_common is not really a class, it is the pre-initialization code needed for the PMDs. In subsequent patch a needed initialization sequence is: (a) Initialize bus (say pci) (b) Initialize common code of a driver (mlx5_common) (c) Register mlx5 class PMDs (mlx5 net, mlx5 vdpa) Information registered by these PMDs is used by mlx5_bus_pci PMD. This mlx5 class PMDs should not confused with rte_class. (d) Register mlx5 PCI bus PMD Hence, introduce a new RTE priority level RTE_PRIO_COMMON which can be used for common initialization and RTE_PRIO_CLASS by mlx5 PMDs for class driver initialization. Signed-off-by: Parav Pandit Acked-by: Matan Azrad --- Changelog: v2->v3: - new patch --- lib/librte_eal/include/rte_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/include/rte_common.h b/lib/librte_eal/include/rte_common.h index 0843ce69e..d4653ea77 100644 --- a/lib/librte_eal/include/rte_common.h +++ b/lib/librte_eal/include/rte_common.h @@ -126,6 +126,7 @@ typedef uint16_t unaligned_uint16_t; #define RTE_PRIORITY_LOG 101 #define RTE_PRIORITY_BUS 110 +#define RTE_PRIORITY_COMMON 119 #define RTE_PRIORITY_CLASS 120 #define RTE_PRIORITY_LAST 65535 -- 2.26.2