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 3D3EAA053B; Fri, 17 Jul 2020 15:50:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 117941C19A; Fri, 17 Jul 2020 15:49:54 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2080.outbound.protection.outlook.com [40.107.20.80]) by dpdk.org (Postfix) with ESMTP id 116801C192 for ; Fri, 17 Jul 2020 15:49:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iBnHsqqqUJHNoMbPkYOMwVvbjP+EOv0kdcz06uNjArIWpPvOlT1wGToWusyQgmUSkiVYei58SkAxJTO1Ar8Erxo35/P1vMW+SszEUrWWmsFxb7kKfow7Ktr36UFHzigt3fEjyQa3WaZ9i0I1WJuuYPYVfFR9TsCiULXuK2CB8BZAhRx0gYNsnoPVv2Q6XSV2rMTeSp1esRWcjvuWp1R/2M+T4uPOYABFcerA88imUzycJ1jxcUtrAFlFErTisSSHTV2Wgpt7plm42e1lFrF2C0ZUehJfDEE9RSheQ903vhhBc5TZdo6b2M2bdd8mmeyGx5MVe3mU3TB/uGpF9zZn2w== 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=TMdRGfp9yriaGqOH/xcTR9HBE+R/NLNBxmBLxcQX3CD6q2qQ7zkuoOhofmN0cMUhvOAR8/WHcBIVUToQobj4uIlGm07xZqDSJk6iUvi5cwD+S+I6GbfSXX/yROBL72QnaQ/KrPgSpX957yNDWE/LxjFStQkthbdTqfupZNXxFdtK4YfUaEHTj3yziPXCiuOlYdTjF0TXf/vCV6KZMCd4KX44adqo/lEGGAgc5hy/LzBGpJovo+NRxRijglyKQusBwIkDpA3LEq8qOt0/PP2bquWHPyxdzL9KMmHo2ZLueZOEQmsn+kNDwDOwE1P9m0JMo5bz2rRDbNgRldUfDG4zGw== 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=ddo7DvuDpxobOLoM4j0szIAFFXqHvhlJtLbxAuZ4/uIwCqXHOnHUFNGbiYiDskrP/rKNU72Ux9iPGS47EagkqPztcB6iaGrCRdRS8kkWDQJMRQHdGXURjNFb4WS8Pf9sGyZLrulctJg3ukLzpakBiMOUT66U6uE7qyN5LfS5M+s= 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 AM0PR05MB4355.eurprd05.prod.outlook.com (2603:10a6:208:59::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Fri, 17 Jul 2020 13:49:50 +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; Fri, 17 Jul 2020 13:49:50 +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: Fri, 17 Jul 2020 16:49:17 +0300 Message-Id: <20200717134924.922390-3-parav@mellanox.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200717134924.922390-1-parav@mellanox.com> References: <20200610171728.89-2-parav@mellanox.com> <20200717134924.922390-1-parav@mellanox.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: DM3PR03CA0013.namprd03.prod.outlook.com (2603:10b6:0:50::23) 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 DM3PR03CA0013.namprd03.prod.outlook.com (2603:10b6:0:50::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.19 via Frontend Transport; Fri, 17 Jul 2020 13:49:48 +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: 149492dc-171a-4b2a-1776-08d82a584688 X-MS-TrafficTypeDiagnostic: AM0PR05MB4355: 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: gF9m/DajXuLeeoI+AyzCS2G39W/07QqRNTV3xrI/mnw2/CF58YVm2IXIoyBxgAX/mXhPPROAZeXJdUjUmrGU2D4WsSavbneeVwRkT5OcWdzJaagdPLtfgpcO1XCFZrPDr3YZ60v9vOKoS/Bchej80gLuuXy71oxCFOFDMRNBjdtPuxzz/I+v1UbaVi65RfbF0tmVVl3YO6SpEdESBJ+oAx74K/14l5O/xd0AOxiHX5PjKyLtIhFgDdHYwKxvTRhbEWbTDOHk15ZaOy+jZOsOrjq2FhVFZM2B/Bc3lmNguqt3HkHIDHEKNO/236q/KNtDgTEyIKQ6FdzUTEG1xc3PZw== 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)(136003)(346002)(396003)(39860400002)(376002)(366004)(8936002)(6666004)(2616005)(107886003)(956004)(86362001)(478600001)(4326008)(16526019)(186003)(26005)(6512007)(52116002)(1076003)(6506007)(66476007)(66946007)(5660300002)(2906002)(8676002)(66556008)(316002)(36756003)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: FNdDek6NiHF0zya4Oq7g6YZuNJHFf3VPF1y510m+gaKsQfgfdD/dau/r+P2xP9F+BXdcsvmbuYeETbLhl4Etqki2uFVFaymj4fXXeB/rJHoz3TivJB4VxX4bYooGLJPiq5Zq4A3CrsHL6XqWF/ym/+XvdEOcYT7ohDU2OIPmLyU5uSFglaFcits5J94JKeeBmEjtBdHufBdOOEZ2vF16QqBNKEjbupRmmJyzOBjpQpnk3nDrLOa4Dbsb/QbPSPWQnC1NPSsKGsCYcjP3coTuMHh+sJrErhMbTfD1J9BzSPhI1eUOcudPNCyNLGcmBPCRgzFTMHqcFuYh74hfqwv5jJ+bnhVi3uroC0oPZP+xbZqwW9cLNLS+zRuOxczOAmL8rq7TCa/CZsVbUqZ1dflKS3AZUilWGSWCZMczJdVRPgMoSdA5zQmNGK5Zlv6j7E3cmfZbu6WFamtOZowV/sLe3OTyUiVQqlH3K3K3xaTFrKSaQG0yPyg4tv42PLW2XMBv X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 149492dc-171a-4b2a-1776-08d82a584688 X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4866.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2020 13:49:50.5225 (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: N2VlQk2GwskffQvfNiXGwRfYvxZkv4EqU5BWSHZnK/KMrPaxTrYGZB2RMyGIAvp+XQ+qSmEWuHO0nMdbI6+1Tw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4355 Subject: [dpdk-dev] [PATCH v7 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