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 6C677A04A4; Wed, 3 Jun 2020 17:06:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C1AE51D547; Wed, 3 Jun 2020 17:06:10 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2051.outbound.protection.outlook.com [40.107.20.51]) by dpdk.org (Postfix) with ESMTP id E5CCE1D533 for ; Wed, 3 Jun 2020 17:06:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UGKCDzYCnMe/IOc2RTQuvofb1toUgAMEl2va/jEP/6jHxm5X6TJ3fuXFe5C2Z0Lwk3F+prsRXKT1tbY3RM0PY6lcIL0L09K/JpaGIjHRzTIluwAF5FbetTguDjDQXfzk3ctia+7SfyCyu9wyQlv8BQoAEEdfAnrtkU2BTBVJiswrYH3Xha47p8FZNpjtVx0jdWuQEQQgsDP05t/Bv1zyjexMJdABlWZ4rKcBEmLkjZ4BE1t4psZ2vdlFPr5E+HwDtfSO0S8EDvpAIQBx2CElC5MnCc/cS5+ZWoxIfwPSv4vWhiGI/mcACTfRk3nuKDpDazWGcaMg8N0HfEQsfZY6Mw== 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=tT+XFjsFdAQ0ggIZnj079AL1ftuZgM2YjWRLeTMeVcg=; b=aeQFoVcin9/rVUx3Iok8BMv243jvr7kcqROSHP6Vrkc/5WnYMPkILr/V9lMFwc4ytTCgJV1ChPKUOD6Vl+u9LsjSAItwkorRjZac996qN5a/AT6OjYc5s1RS/+zjsrot+FBnZQMrhkGlV6RmXbCA9VIixo+yV9qFZV2awOr/+t1I26BcrMo+BuWlqKJWZgN8XfsUijL54I1dscQB49zlTuuKUwDr9zBZl6AIvAuAZp9Zd5NCJikuM5sf8iSiFVc8Wj1vpom+uB3zpftvCVlNyRAS3e1G1tgxVaVv1KW4Rm3tzfKRWBNTVAXwluABF+ir32D2oIoT7PkDk10Mix9IYQ== 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=tT+XFjsFdAQ0ggIZnj079AL1ftuZgM2YjWRLeTMeVcg=; b=FXVMMC3FzwdrDMf/4hr9tllBd5rnr6teX7jmagOrC2zs9q1MYOhcgoSmO/Ob1SHb4AmsuW6VrjXmyegCiqyNGck1VNvJVv19NrDGPRcMPxm4MTTlX6hJOF5+9wDcKkhdrYboy/HhTtOoFKqY4C/dyIsEq5I59AAQldfC9uorsh0= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB4209.eurprd05.prod.outlook.com (2603:10a6:208:61::22) by AM0PR05MB5235.eurprd05.prod.outlook.com (2603:10a6:208:f5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Wed, 3 Jun 2020 15:06:08 +0000 Received: from AM0PR05MB4209.eurprd05.prod.outlook.com ([fe80::1068:89a9:41d3:b14a]) by AM0PR05MB4209.eurprd05.prod.outlook.com ([fe80::1068:89a9:41d3:b14a%3]) with mapi id 15.20.3066.018; Wed, 3 Jun 2020 15:06:08 +0000 From: Ophir Munk To: dev@dpdk.org, Matan Azrad , Raslan Darawsheh Cc: Ophir Munk Date: Wed, 3 Jun 2020 15:05:54 +0000 Message-Id: <20200603150602.4686-1-ophirmu@mellanox.com> X-Mailer: git-send-email 2.8.4 Content-Type: text/plain X-ClientProxiedBy: AM4PR0302CA0033.eurprd03.prod.outlook.com (2603:10a6:205:2::46) To AM0PR05MB4209.eurprd05.prod.outlook.com (2603:10a6:208:61::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mellanox.com (37.142.13.130) by AM4PR0302CA0033.eurprd03.prod.outlook.com (2603:10a6:205:2::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19 via Frontend Transport; Wed, 3 Jun 2020 15:06:07 +0000 X-Mailer: git-send-email 2.8.4 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1e69b374-3b7d-414f-6d1d-08d807cfa4b2 X-MS-TrafficTypeDiagnostic: AM0PR05MB5235: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-Forefront-PRVS: 04238CD941 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GfgvkqPYPlPIihB8yzyXWiP0RcJcrjslI07XbPNfBKgaUYrwjWQ+5vrQwtOjbJla0MOhZu4FaKxTmSsdUu1oDkC7EqIHhCZIu9BizxvCY7CPJI328pBmbFcnsuwQxWI8vM9hQUuxzJF8AgM5qDohS70IsiRB1lm7v1e0y6rtPaeyiwwCgP+PCOZtfEzBh3QTLL/6/UpcQFp2i5cyqKZeE5zkWyd+phpM9nNt6iqU/ggCL1ZjW+dBTTD70H3WFw0JIp99v2npGBY+ScDKGwC9mSZk4sCwUsFFu+EGWjSKyJ/F3TFFwHDqG0Jc+QuqKK+01ImwGxOs0uq/f/rNB1u2iQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4209.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(136003)(346002)(39860400002)(376002)(26005)(4326008)(186003)(478600001)(316002)(8676002)(16526019)(8886007)(6666004)(2906002)(66476007)(8936002)(66946007)(956004)(66556008)(2616005)(55016002)(107886003)(86362001)(83380400001)(36756003)(6636002)(7696005)(5660300002)(1076003)(52116002)(110136005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: y/6rqNh4L0PxTkCM2VGn39z0kIOgQZmQQKJb7Fbt2PEWHbpf5QWtFzPaWWYlGKq8dVK77JJPPWbAmdhgQic1mWtvj+GOwQX1sUdi6YnnrTsfms0hPDBgmVke0E6Z8QKp49vs1Zooif3CtCLtcb1wM78bW8QEVZcQdnVvwY4WMYTG2vZ0Kv0BIErLxTSGpQAn5N6qx47VEGDKlDH2jpbnQCWHacCsc9kV9MhIP4TEuAmOLKE1eykWgpNqGWH0kEOHI3n8dsuwoshM2s2ztmCsGa4tuHTiL5HJwVyn4N2V1xkrFEPHk8LuanQjA8vlkMl99aMkEteZikynQ9pRsSZ/yibS0vz52A+7qLUqidfPbjBlFCA0pCR9QVecxwz1moUVdBwpmyfscB9qpQyufkTPavQwYTQ4GDHdxWJzEaWmRPqLfC1VH0UEcpNWCa8R1S04VOCP5odE4qrvw/7SjDy2TiBYPyX0qoxnzuMO2XI19doSHg+P7dE9AYQ5hhJ3veF3 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e69b374-3b7d-414f-6d1d-08d807cfa4b2 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2020 15:06:07.8944 (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: QezraOZX8dO4SHoTtUo9WbUPfbBm7D3jHaxYXIj3mjCLB2PrTu5ZsNhwX0ddFHKjMbhuB4YjB1+pa/ZTAtDKww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5235 Subject: [dpdk-dev] [PATCH v1 0/8] mlx5 PMD multi OS support 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" This patch series is part of preparing mlx5 PMD to compile and run under multiple OSs. v1: Initial release Ophir Munk (8): net/mlx5: rename mlx5 ibv shared struct net/mlx5: add mlx5 Linux specific file with getter functions drivers: remove mlx5 protection domain dependency on ibv net/mlx5: remove attributes dependency on ibv and dv net/mlx5: remove umem field dependency on dv net/mlx5: refactor PCI probing under Linux net/mlx5: add mlx5 header file specific to Linux net/mlx5: remove ibv dependency in spawn struct drivers/common/mlx5/mlx5_common_mr.c | 24 +- drivers/common/mlx5/mlx5_common_mr.h | 6 +- drivers/net/mlx5/Makefile | 2 + drivers/net/mlx5/linux/meson.build | 8 + drivers/net/mlx5/linux/mlx5_os.c | 1992 ++++++++++++++++++++++++++++++++++ drivers/net/mlx5/linux/mlx5_os.h | 18 + drivers/net/mlx5/meson.build | 5 +- drivers/net/mlx5/mlx5.c | 1900 ++------------------------------ drivers/net/mlx5/mlx5.h | 100 +- drivers/net/mlx5/mlx5_ethdev.c | 12 +- drivers/net/mlx5/mlx5_flow.c | 20 +- drivers/net/mlx5/mlx5_flow_dv.c | 28 +- drivers/net/mlx5/mlx5_mp.c | 2 +- drivers/net/mlx5/mlx5_mr.c | 10 +- drivers/net/mlx5/mlx5_rxq.c | 6 +- drivers/net/mlx5/mlx5_txq.c | 18 +- 16 files changed, 2233 insertions(+), 1918 deletions(-) create mode 100644 drivers/net/mlx5/linux/meson.build create mode 100644 drivers/net/mlx5/linux/mlx5_os.c create mode 100644 drivers/net/mlx5/linux/mlx5_os.h -- 2.8.4