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 18012A0526; Thu, 9 Jul 2020 09:35:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9EA9F1DC92; Thu, 9 Jul 2020 09:35:44 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2044.outbound.protection.outlook.com [40.107.21.44]) by dpdk.org (Postfix) with ESMTP id AA1741DC90 for ; Thu, 9 Jul 2020 09:35:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mkHCIO/0j7dTO4Bc3AfYf6CTsDxyUXL28P8eGDBd7v3EDZ1CVTzb+ogCTfN1YwyFx04kvDDH3A9NnXGr50p4J67CbMVWGUwR5h9W9W9c0wuQK3c4IgoW5ofPrcp3xd5cg7NFVklW9r4QjhQQ3/BORFbDNh8HjjznvTmAGUEU5zfzF7t/VHkPARpA6hpp81C9HQqrV3RZh9br/ke6IHchTZvqNyMvdP0A+0U1SmZ7PT0LwQ86hjYSygcBu6Ldqb6RDRZJj6LxVaQcVfQVeeLs/6cNcBj9qUIVdIHMrhAKO2kEaoENLQO31LKQzrq/j3SXD2deDhmKwiR1095oqY3x7w== 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=nz08qjLEYXaDpVAoL28qVjHzXDqqRykZgnf4MeodWlXl/Jtb7s40/UtJDkWITtkJls6B1H3JP8Ufh0UFBwArH5kmqXWZvVnslwOLVUtarVweNPktQYWi8LRWCpHn0M+zOFE3teR5/1rzgy9PZERZ6CVO1K5sl/uH1Bi3JY62oVTWjSz0ZX/qhJG9V7KZzAYqANDnUhGRjrrkiEpKmvpHTqEmsTBuR1En0KIjGVIDzLAIAdydNNDMtO6DgHf7B+c2LJq2tlsd790D1lJ1Dk1/Jdxf1lbv74sGUPTBEScFUXmsbFiJsI6VaXmOv46ncMtbjsBASPIXCm2kEEx8HV+FIw== 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=awHTnpdsE6HX/GtaTGFcfVncCFkdXCC/RflFPkljgF2JHW4N5AD+H9JEHuFCNa+rezF5Z9wMtc//hx1cxbOUjUBXni3XZqbY8RWFhatXnJhy5txM6Y/hSj3p0BZiiIEnhLl3AGgYFr70XqGw1SBTT66mi5gW11P9BSgzMgqBZZY= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com; Received: from DB7PR05MB4876.eurprd05.prod.outlook.com (2603:10a6:10:1d::32) by DBAPR05MB6936.eurprd05.prod.outlook.com (2603:10a6:10:18f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.23; Thu, 9 Jul 2020 07:35:42 +0000 Received: from DB7PR05MB4876.eurprd05.prod.outlook.com ([fe80::8cb3:93cb:c3ef:4293]) by DB7PR05MB4876.eurprd05.prod.outlook.com ([fe80::8cb3:93cb:c3ef:4293%5]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020 07:35:42 +0000 From: Parav Pandit To: dev@dpdk.org, grive@u256.net, ferruh.yigit@intel.com, thomas@monjalon.net Cc: rasland@mellanox.com, orika@mellanox.com, matan@mellanox.com, joyce.kong@arm.com, Parav Pandit Date: Thu, 9 Jul 2020 10:34:45 +0300 Message-Id: <20200709073452.948894-3-parav@mellanox.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200709073452.948894-1-parav@mellanox.com> References: <20200610171728.89-2-parav@mellanox.com> <20200709073452.948894-1-parav@mellanox.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN4PR0501CA0104.namprd05.prod.outlook.com (2603:10b6:803:42::21) To DB7PR05MB4876.eurprd05.prod.outlook.com (2603:10a6:10:1d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sw-mtx-036.mtx.labs.mlnx (208.176.44.194) by SN4PR0501CA0104.namprd05.prod.outlook.com (2603:10b6:803:42::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9 via Frontend Transport; Thu, 9 Jul 2020 07:35:39 +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: 0f61e8f9-2fdd-4e56-9123-08d823daae6d X-MS-TrafficTypeDiagnostic: DBAPR05MB6936: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-Forefront-PRVS: 04599F3534 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /D+N26N4cKMD5WfnmypjfckrVv3jNd9d8eljFJNd6c96cgJbol2KrRshQqEjNSiMlNjfWRnXRUVXAXlfsf/JqX16j5aOyNuUf/znsyCKmtkv2K92a4OkzOcvkx/0lWnfSjI/mIfuXPWgQ59SH/6/yM0WfN0EaavKshwBw9q2Ord1742txHcqms6R9fn9KeuZjBfMlAXqLNjYR7fcKg/5vtwbZM3WB+oIJ1ZFFSBcq9lrO5Wlno4V1rFX3I2cIYLqxTWkxrsJCYMWZBiNplCtSMUTVhZjnKu7ssR8Ye8E2fCTRrLUlaf4YPHBj4e226nP X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR05MB4876.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(136003)(396003)(39860400002)(346002)(376002)(66476007)(36756003)(4326008)(66556008)(1076003)(6486002)(6506007)(66946007)(6666004)(16526019)(186003)(26005)(52116002)(107886003)(5660300002)(2906002)(478600001)(8936002)(8676002)(956004)(2616005)(6512007)(86362001)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: dMSvYTS3PX7Q/mBjWug7Vp1hNdplt9tQrb0gPlWLN3Bq7AcGkq0XefUvwhkVlHfmTpc82OwE0MzRZDwn8zMvJbFRFpXLwJBcmdgIW/7yKlb1zSUcV7bdAqUp7JxPL1EoNA7D5mOxE05NmUVo5tPmm7uYiYUf23TcnDXGWIiZ7ou+8lbOzxDA7tmIu3QsMe6+rmoa5NDJ9XjI7TymkBRLwM1YQjQ6/wsagAolxBYcRGYwPyr8qcUfLYqrhiJOD8N/yUPY8VNqvnxuW2fh/0roYmo+xZ1X0t4MUOcdGTy8yG4/ZzFDbVwKQ1LpI5lLUEkNv6U6atMmdRH0qLtmjtBYCazgeIMq7amxAFGKMQYxcdwaRIZCcW1N/gBLWJH+wAsSaWUnclYXCELGm3/ei4XBIJpXhjH7Awcf2pNi6dyVZ+ZuB8f0I6hUPNik1jIrToRuK6E+cOd8pBK8mb4k6KrUZxAgdhYHl2CNEvQ7rwZlT1ProCbuyd5FULNnTdKvQAtC X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f61e8f9-2fdd-4e56-9123-08d823daae6d X-MS-Exchange-CrossTenant-AuthSource: DB7PR05MB4876.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 07:35:41.8718 (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: AaT/y7Z/3JntAf0Epdv0PQXWUFDvvm12YPnqIPZ+DpMf9TG/zwEeLFEYyE0ZV97fDg6F9aNE5WE6VLq2g7DiZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR05MB6936 Subject: [dpdk-dev] [PATCH v5 2/9] 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