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 C0558A0546; Thu, 16 Jul 2020 09:30:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 01AA81BED1; Thu, 16 Jul 2020 09:30:06 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60081.outbound.protection.outlook.com [40.107.6.81]) by dpdk.org (Postfix) with ESMTP id 7A15A1BEC0 for ; Thu, 16 Jul 2020 09:30:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mx6ss1ejvfR9S6CkPXgvuNKNDLUHk9jd7cdYBXq10ZCWfBHLTUlTao40c3tB5pLXgDfMDq/djcuzNqWAU9reYfih2ct9hcHfvd+2uKfreviRm7lNN2L7vJi4WUkKyZ7FJuafSEVfVqZVzHvyAeKuALJZYzxQuOihKYqpQU7gOIHC+JnnOT8P51G9DJuIll1uSKW6xveOcb5OsTmSIJSO9DGhtvYXbvl0JQ90yrBB5DUZ0BKdMoLKw971RegxEOD7OJwDSPL7D4NTigaPDoKrmWcXgApX1s+REI6xMXnYpFX7MoRCrdjoorNCjHHuT8K11X/Pz172JcVEkl3pv1sGRQ== 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=LRlbo2xuwfNrBFRf5HI3FuiG9Q+MTrXTojkcT+XLgR0=; b=kQLHiGwZcsxomO81gr13KFkaPri41nM5wlC07DMSnMyevU6wJ8VRRzHBY0w7t3D759eusX1l7Y+8GmssN87UqyzWaT63VOtOMXfqndXmVRYRYqv6jZG6ZhuSAnMDCJsynU3OYixmuYJKGRNKOFKtcsWocWXZEnFfJhMgaMlJ1TWp/3k/ds58hNK3JGIHzTMKt9ys7m5xs+YmQ4i+ROMz0fRKaJDkiHh1ef7eN3DRNlbrs7/kl5WckBeEMt+7e++WGgVPg3krUE5x+JiErmyfQOEZu2Y2P4LjtHisyRyWYn7sCmW5q03+4EYUXlbGwKtzvV/i/QtYWrYIhlL6SYVD0A== 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=LRlbo2xuwfNrBFRf5HI3FuiG9Q+MTrXTojkcT+XLgR0=; b=LoJNvxpD0cXMFbaBQsJzXomVKSBM3l3YQLMdG+s4N6j52yMvrYB08c24qBndOfACwjp36wMrtWXSJ3ajex/pfGB0wSnTO/qN+6bQXDZWQ7ZhoMjhO8AGjLaA7bLMMAQ89SKI+cZPJybsBBuisE8+qqK5o/KKvde+rvFlQPrQIuA= 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 AM0PR05MB5329.eurprd05.prod.outlook.com (2603:10a6:208:ed::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23; Thu, 16 Jul 2020 07:30:03 +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.3174.026; Thu, 16 Jul 2020 07:30:03 +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, 16 Jul 2020 10:29:31 +0300 Message-Id: <20200716072938.812733-3-parav@mellanox.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716072938.812733-1-parav@mellanox.com> References: <20200610171728.89-2-parav@mellanox.com> <20200716072938.812733-1-parav@mellanox.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN6PR16CA0057.namprd16.prod.outlook.com (2603:10b6:805:ca::34) 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 SN6PR16CA0057.namprd16.prod.outlook.com (2603:10b6:805:ca::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Thu, 16 Jul 2020 07:30:01 +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: 0c5f9589-c65b-4fc2-c910-08d8295a0dae X-MS-TrafficTypeDiagnostic: AM0PR05MB5329: 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-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dnYqIRPZL1/Da+cjTXOuzWIpu8xT7qKcNUladjQCz6li+HlG3EsDw5m9Ba371FInca5E7oziiqGt2MKwg+g70c59unjnI4lTse2K//Nz50p2RO1Y/D5g0cfasvh1Rmc0I4b9Q/oJBXJiZBexoFH+MuVUB1DWwRwz3bGr6yFI4d1rDastUfrY2md7MMZgwsN7q/tUiw46Vg9JbDgSTEpijvxKxRAVD9dQ6fu0exI1UoR3fif8waoir36M2kpX4t1k07gvCJJtXqBYM1TKV0jbyC7oxTO4hwGNKkEPeo0GNx2jC+4knvayctEs8LznIit7/JwpGipTWYemOwHkAmExjQ== 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)(376002)(366004)(346002)(136003)(396003)(39860400002)(6506007)(6666004)(16526019)(186003)(66946007)(107886003)(66556008)(26005)(8936002)(86362001)(6512007)(6486002)(52116002)(66476007)(5660300002)(2616005)(956004)(36756003)(8676002)(478600001)(316002)(1076003)(2906002)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1dJjH0oyQbt9SkZ0j9fHVJeW7CfGmqmBDzHBzHuUYANBAOSmMUrz6noKYyrB29/s4aiEnJgEIptyDcVo1Z4vhtByzr+3egQjbuVOTqkfVQWukigXjMpjsC62K8fvFNNRyT2Ewqb6v4hqHlkXyL/N74KHMFpGHC4oJ0UM1QdCzymm6FjYjW4nbhZ6kIo71ma4yuLAH+gvN7HXWH7QzzD4pVCs59zej60+0MA1DfayjvHlfJ/mT5nMUDSAMC4FXOdmz+Xb+DpOfMy6AuiDOwVXxMBfPiPl3P7uE9CS8TUf/tLI13MwfnqdS8BKUy0gGBH/W9s7IMEhUF/A8my+EzW8CIXkUmHpoIljvWHyITDGZKCuL2m9ILNMBylozo2EEhVQLXRrraKvGhIiz/aC9MSczir3FANchhkSs3rdZPPS0Boom3sFaf72aXNw0894pPlOBWKoIhAkf76QsWqFTuQX93941PK/HAsZKglFHJyrO8sWVju9ZEL18Os0q90ty3QO X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c5f9589-c65b-4fc2-c910-08d8295a0dae X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4866.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2020 07:30:03.0776 (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: e8KzzNHlnhNYooWdPjlm8uifUf1m0NRjRSr4NFBEU8rT//qQYZWwK58QozN2dE0ELKdJ+4D3pJUj2HFi6YB+8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5329 Subject: [dpdk-dev] [PATCH v6 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 8f487a563..522afe58e 100644 --- a/lib/librte_eal/include/rte_common.h +++ b/lib/librte_eal/include/rte_common.h @@ -135,6 +135,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