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 82BDCA0519; Fri, 3 Jul 2020 15:47:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 615421DBCC; Fri, 3 Jul 2020 15:47:08 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2067.outbound.protection.outlook.com [40.107.20.67]) by dpdk.org (Postfix) with ESMTP id 661731DBB2 for ; Fri, 3 Jul 2020 15:47:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nnsDUul7EoOTZYCTKlP38uvlhQMdb3i5hjs3M9prLs1dNeROvUEsuoRy8lniMB4hypcZUqlaQw12vzHR6+Aee7lzGNIIqJGT4KOI/Xw1n2VC4mHqMCblNGe4WSwd0PjKHQ4N94csRRH4+qDsMqouQbxqlRMEvz4gaUJIPV2qLB5mvyChVICWg0GnV7CYSeYI7eeolXxE+MbTpjS13SAkLviGUk33Rw9Iln3On8FHJ9NT4ReogQw6Ox3l9sN8n3CvQujyT/JJiSjZed+FgeqGjToNO0Y4+VVmaEH/J91v+SHiZJe/AgaVLyNI4VYTQIhRjpgxqRwCJL3r96xuplAOXA== 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=KoAwlTtUZMr+2D4El/jUNFVq1ksO9Kt6eE4nqC5ctUY8ss3HnQlmo3Pci/zNMDOOcUi58RP+inJx6W5jlo07yFKsPs8PnFxjELGdzfKtK7BTj/l/kcuvSj91VTnTBpzK2AkN+Qd07tyZzYQlvezfz9ieaYALaDHkksYlMZV/VstecK2An2AbuVGCGKGJhkvy5q9ETAfzKs7GaJYe0RUy/g73jWcTjVasW6n8QZR51FC2KIo3r3Qar/wvNcqRNFOtNZpV+bhQXUtlaHGK3j5CJg71IEKq1tnA4GZ3KuNFEEfUUjS4PEtg8oqaTVlQeNFf7HNxcoRyXJ1pZSrusvNWKw== 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=gzFUTi1RePrHqNhT2tsEFTcTRfCvkQ/rM6fLyHeSvEMn9OS+Wq2z+nfHJ9udXltAUtrK/NGpLQAEP5yxDcqWxQidG9eNC4/5jQrWQey4FAkCWagzvQJgwhBuBn9c6NfQ3cPuixzM0EY+QVhmLJTlK6RdnhdCj6t4yKfvCo0j98k= 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 AM4PR05MB3345.eurprd05.prod.outlook.com (2603:10a6:205:a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21; Fri, 3 Jul 2020 13:47:04 +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 13:47:04 +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 16:46:33 +0300 Message-Id: <20200703134641.386297-3-parav@mellanox.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200703134641.386297-1-parav@mellanox.com> References: <20200610171728.89-2-parav@mellanox.com> <20200703134641.386297-1-parav@mellanox.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN4PR0401CA0009.namprd04.prod.outlook.com (2603:10b6:803:21::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 SN4PR0401CA0009.namprd04.prod.outlook.com (2603:10b6:803:21::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21 via Frontend Transport; Fri, 3 Jul 2020 13:47:02 +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: b8a466c6-66d7-452c-bf9a-08d81f5791cb X-MS-TrafficTypeDiagnostic: AM4PR05MB3345: 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: mPG4RxE/8/2hjdHt2sL1jGW5yQw8Ddx3LoWlbBrVk2JQ66QxLroVGGm7AmGkh5UpYitQbe0qYHiMhiWbrAy494EaBRT1nc+bn8oBnTFlzPSu84ayPzCo/o0ydeIY1PzpoIvAB8q7OYGs3De/6XHBqjBfF5YP1v9NbknDs2pbAnjJVeTP1i+end/jw/Bt8X733Xf5BMOlmp5TLO8SspV2ZqN7nwn/PVrYwydEjUFAAaAoOFxdO655OuIN5gsV4Vylmua32EsX7IPuiBtzC24Eh0biKq/w0GmggD/hG+Or1Bu9oey+gYNjvMD6HDiUJpKx 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)(396003)(376002)(136003)(39860400002)(4326008)(66476007)(8936002)(8676002)(6486002)(6506007)(478600001)(66946007)(52116002)(956004)(6666004)(186003)(26005)(1076003)(16526019)(107886003)(66556008)(5660300002)(2616005)(2906002)(86362001)(36756003)(316002)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: IJdtt8/lgUZTKY+A/KrU3dSYT1H+np9w7Z/rhn+dKBWneyMb6lyU+NRXuf1qs51wxVkvCYkaNl+7mP11ISGn0WbJI1vFFf9xB/omf1CZWL/Ya3rChfxKDvI7yspWE02ZXmAEUdj0+5zP77s+mVMQp0fh6vED3WjvXIMO9eh32Bik9HX1sMEpYSMFTiEMzOjWJwikdfgADEjV9M92QAMPuSrL64LBYqIJKivOLDl46zg2ATpZQshdEp8Whl7zB3RM0i0jHMquTWzK65KpXoizNZmJkl3GILdP6KoGWSeayUbJHAl10eiTTMwrWChOgsOuqYfoifHBKaJVieS7HiOye2sgeHD2BJgTSpmCEN0M2lVNgShZfWQC95/0O7RNFHs8s9WKwqVb0KP/qUKITRwnqJD68FpJFsot5LPE/qzzEHiM2Eh9l0FTnQP8MGG9PuHgiz7T11S/DBiflSIWCU1nebjifYU9zC0JAxXj4qcIGnEkhkXm/fBBJgjnZzO8Q7aa X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8a466c6-66d7-452c-bf9a-08d81f5791cb X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4866.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2020 13:47:04.5408 (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: ZDKR2b+a+ScSb99DQ+2Ls4typ8fi+/eCwo/zic+3t8sgJHVjj4ToA5cSiD8qp5j0lA1xNIZB+N6n30jvolNyrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3345 Subject: [dpdk-dev] [PATCH v4 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