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 47C93A0517; Wed, 10 Jun 2020 11:33:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8D5351C01; Wed, 10 Jun 2020 11:33:02 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2052.outbound.protection.outlook.com [40.107.22.52]) by dpdk.org (Postfix) with ESMTP id 6278D255 for ; Wed, 10 Jun 2020 11:33:01 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ix4ksmzt2HI7qbGPINCgNxYqhvcAEHHbUFH+DYW/aOXvCjF0r1GhdheN4xZT6Txv9M/qh2WNxqJihw0KBYVbAYnEsad76VvBaJtsgvmIrToZQQp1y9vg0+AOI/lzJkOwBi/yj3r+H2SEcTZGdKirUzEfELc0vNQCUBvwaAxKaKPheNTyh8ttlvO3agc7xH55x7nhxY6ER7BX3GJ18IQUSUJWT9tlHLY0ABT7TeId7RWXcSL6+HREDQF+PO3Vp5NZGy7Qf9pT8jzK9zhrmdPY9Z6BOLXunNlhBIFBNox31xqqcUrYGcz8+TsKH/8PZvv3b0k/+CLwJ0pAubB8qPaOdA== 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=ppydMBhVTV+c2bbRdZjbS0eSugNEE2h1fnuyTnjwIUY=; b=SH46nkQ8IF2LVT+8LDmVJnO359/0o+diZcXlvblWMaiK3lawc186wRJPy383AueGs4gPlATAIQ1RZcgxyjh5M/l0K+BgZaxuqXfZ/DqXWAmw4wtAhmfvXCIWQ9PiUNC9Yw4iKQyaetr2TlOJ5/hpKSUZUJQlLATurxcg0Ij3JW20Vgc7N8iOxMViKXAp3QO1lCAJaPHYUh7wuirFubdNHAb5vjU8D+88rZl7xJNCRAVhA6rUdn+YjNuvYnekmQJdpCyjNbekNbEHDRtsqPAcC+pUGZiPqZ+33OOwE1n0lpZnWfwIN8GkrmCaEdyZUmdSFXg+y+JwWpOZ7Ui9Tx+P1A== 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=ppydMBhVTV+c2bbRdZjbS0eSugNEE2h1fnuyTnjwIUY=; b=c9udvX7tdB3TCxaemh5JXFk8UJW58tdEHeDgY4h3CxopVNzP8XbtbOn7oEtAW1fnoIp80MCPH9jPLkWBRwgUB9ejp2bky+RZi+eOiHRjpaECPL+1cR5zkHCJqdfsTv57Jpm8AEbzBDg0iBhXvkJHv0efOtvFW06GtxH9w/Lr9x8= 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 AM0PR05MB4545.eurprd05.prod.outlook.com (2603:10a6:208:b9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.20; Wed, 10 Jun 2020 09:33:00 +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.023; Wed, 10 Jun 2020 09:33:00 +0000 From: Ophir Munk To: dev@dpdk.org, Matan Azrad , Raslan Darawsheh Cc: Ophir Munk Date: Wed, 10 Jun 2020 09:32:25 +0000 Message-Id: <20200610093233.23902-1-ophirmu@mellanox.com> X-Mailer: git-send-email 2.8.4 Content-Type: text/plain X-ClientProxiedBy: MRXP264CA0003.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:15::15) 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 MRXP264CA0003.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:15::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Wed, 10 Jun 2020 09:32:59 +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: 365baab8-4243-4af6-fc11-08d80d2143f3 X-MS-TrafficTypeDiagnostic: AM0PR05MB4545: 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:3968; X-Forefront-PRVS: 0430FA5CB7 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ze+cfiKpojAyR43kgiUcZMNEftJTDgp0E/EuA0yAQJ1uIMCccH6bhzDrwpobZ+MX3OZx2jMml0VCjqStWfwwO8XmFGdmLqoSkBjqrbIYHTKvUqS8cMSey6SN1pNypMYpnA2b2l955SMFBOa6PapGfD7VxGrVktxBBAK/fPUtuslW7hZ+8Ytz47MJ1fXH11gqRUYsF/IVrC41pV9CoBcmTR8zc1RYIS10G8BWJT48WSm4WTQqyNtMfh05WbpP/KsqPTpHqjcBKT7zFbJ636FKCN7xBLFB1CVPEtqLe0/7ttCj1zUEuFOhwqXDud/LdVE7Nh1OEVzekWHLq8NNgXwWiA== 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)(346002)(376002)(39860400002)(396003)(366004)(136003)(6666004)(478600001)(26005)(186003)(8676002)(5660300002)(8886007)(66476007)(66556008)(36756003)(66946007)(2906002)(956004)(2616005)(55016002)(52116002)(7696005)(8936002)(6636002)(110136005)(1076003)(16526019)(83380400001)(316002)(86362001)(107886003)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: L/HGSS0VM93+tSmrKgL3snbyEq1VfFUi7J2MdfuZj6tjK6oEgiu1HpfSujy5lUE/eI+k75NyWMHSi4yD8gJneHdstnWuPIlI5B4tL4nNZl3bgEnda8lOLf9xeywiZV8Cmpj+ZMEfn9mtfzSN2j7xhJxHdP7qpvWlj9IKDt6zzdaQbh3TFmL2y3miQwws/yMiWKxL7Ndb6grAUNouVEw9gAxN/KigWzRfxuAoln5+jVmXCkF2KQNclQJHVYMAqntkHJ/5Ng9fQTDeec0pyT5Wb7wRV746DMtzueWOkOfRPvAEyi722QH33c4J6N2utAIGxsDBrmlZLLhubjlgB8e2rn2VKj0p1GpMO8dVbyIOhgOGCFKaY3eA55USoW07OM4isAMldK6LS1ahzS0YJ9zqWJtecIUhJpvAvzFgtKfTSCwYdXKclLTmGtP5fDNwql0xbd1PWWTfLAYN6XJ+2panjTP0AE5AQXd+2JmhxwU9JKUy+Hhg4UsBfi9mhKHgGQ2I X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 365baab8-4243-4af6-fc11-08d80d2143f3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2020 09:33:00.0598 (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: F3ACZiaye9BEBL5lPE3Y1zKLhdiDdNKlRjAOLe4Osc2I0CFYLUP182569795p0XiljLBhKFjwYbxiVA2ob31Jg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4545 Subject: [dpdk-dev] [PATCH v1 0/8] mlx5 PMD multi OS support - part #2 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. Part #2 v1: Initial release Ophir Munk (8): net/mlx5: remove dv dependency in mlx5_dev_ctx_shared struct net/mlx5: rename ib in names net/mlx5: move socket files under Linux directory net/mlx5: split mlx5 ethdev under Linux directory net/mlx5: refactor eth dev ops for Linux common/mlx5: exclude ibv dependent calls in devx commands common/mlx5: exclude OS dependency in devx commands net/mlx5: refactor statistics drivers/common/mlx5/linux/mlx5_common_os.c | 12 + drivers/common/mlx5/mlx5_common.h | 1 + drivers/common/mlx5/mlx5_devx_cmds.c | 9 +- drivers/net/mlx5/Makefile | 3 +- drivers/net/mlx5/linux/meson.build | 2 + drivers/net/mlx5/linux/mlx5_ethdev_os.c | 1270 ++++++++++++++++++++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 481 ++++++++++- drivers/net/mlx5/linux/mlx5_socket.c | 230 +++++ drivers/net/mlx5/meson.build | 1 - drivers/net/mlx5/mlx5.c | 172 +--- drivers/net/mlx5/mlx5.h | 55 +- drivers/net/mlx5/mlx5_ethdev.c | 1257 +-------------------------- drivers/net/mlx5/mlx5_flow.c | 10 +- drivers/net/mlx5/mlx5_flow_dv.c | 4 +- drivers/net/mlx5/mlx5_flow_verbs.c | 2 +- drivers/net/mlx5/mlx5_rxtx.c | 2 +- drivers/net/mlx5/mlx5_socket.c | 230 ----- drivers/net/mlx5/mlx5_stats.c | 332 +------- drivers/net/mlx5/mlx5_trigger.c | 10 +- drivers/net/mlx5/mlx5_txq.c | 2 +- 20 files changed, 2081 insertions(+), 2004 deletions(-) create mode 100644 drivers/net/mlx5/linux/mlx5_ethdev_os.c create mode 100644 drivers/net/mlx5/linux/mlx5_socket.c delete mode 100644 drivers/net/mlx5/mlx5_socket.c -- 2.8.4