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 79096A052A; Sun, 19 Jul 2020 09:11:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 447901C000; Sun, 19 Jul 2020 09:11:28 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60040.outbound.protection.outlook.com [40.107.6.40]) by dpdk.org (Postfix) with ESMTP id AA5EB1BF92 for ; Sun, 19 Jul 2020 09:11:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MOFqhkG+8/5OrjBMizICnFt90+bsE22WkvYRUKD4UmGTUKBeMLcaugx/NyzorU58T+p+cPLzer5ocYpO7UPl2S+oFKuV8gxXmeXlNBZVroyUnRJwIRO1ifve4zAZd8+R0DrV2vQqU5GlJaPcg6++78lJkqUI5f+Zb0oyfLazdInVIwfEAM/PO0qcJxVtxaF7vhSQF7a8LTaHhUifC5YE/X4G6iy1zsaRM2Z/59WGbYaHgl6vgn8WjqaGzwyKxXSQOthQ8e0vhK1kPG9NkxjweibOev6qvDiI3a+BUgxl107MKgQSA5XnzjRWb5Vs5ZzyDqIifd5wp0jgIGPDxWCMSw== 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=3+nqURaBw3pthRnYAr+ebn0Iv9Ua71Oxh5qvb6zmBtc=; b=fKy+HppOayH4I88RXbFldvYhgrcmiDSCCphEhnkIPQaQkzlHwbhrdgHjB71i6g3WvPpJpCwEWLXc6ABJxXDBn1LvwRd8Jlc/OqsmIKEkqhxwTYOGc/noe43H9BDNFgETuueB+M0KcN/QHUGOZ63vAwpEfExGVydt5fiF44REWczsuT5b8oJAfEklMu+DNvwhpobDytVSGoFYqCu3zclV9Y06Lq16wBc9cz8FJivFj0oLe2zTzoOFjdNU1dj63SBUUYVhOed2PTaSKwQ8SueqrLSMgA07oa7ZURdcjx+J7xKBIjzHba6kERO9F7Oa0ZPVictDbugqp4YPEE7Y+DDRnA== 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=3+nqURaBw3pthRnYAr+ebn0Iv9Ua71Oxh5qvb6zmBtc=; b=eKBj9kEkzvNYEbkVgi/ONaJABeDcFXktHCKjKuJ2jlKEWtanjLL4BzT37c5UeMefGNyPVoR/K2OOrbnvrifcNbkisuzNePYSdwUTNa8lheaBd94fnL7F5zL3nLWQlliS4vB0Tn8crOTk206aHBU4s6smtdTzxwX7goMMveqhVo8= 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 AM0PR05MB4738.eurprd05.prod.outlook.com (2603:10a6:208:b7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Sun, 19 Jul 2020 07:11:26 +0000 Received: from AM0PR05MB4209.eurprd05.prod.outlook.com ([fe80::3949:70c3:126:3972]) by AM0PR05MB4209.eurprd05.prod.outlook.com ([fe80::3949:70c3:126:3972%7]) with mapi id 15.20.3195.024; Sun, 19 Jul 2020 07:11:26 +0000 From: Ophir Munk To: dev@dpdk.org Cc: Raslan Darawsheh , Ophir Munk , Matan Azrad Date: Sun, 19 Jul 2020 07:11:04 +0000 Message-Id: <20200719071112.8540-1-ophirmu@mellanox.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20200714142102.30606-9-ophirmu@mellanox.com> References: <20200714142102.30606-9-ophirmu@mellanox.com> Content-Type: text/plain X-ClientProxiedBy: AM0PR04CA0024.eurprd04.prod.outlook.com (2603:10a6:208:122::37) 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 AM0PR04CA0024.eurprd04.prod.outlook.com (2603:10a6:208:122::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Sun, 19 Jul 2020 07:11:25 +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: 5e0316fd-718f-405c-55f9-08d82bb2f382 X-MS-TrafficTypeDiagnostic: AM0PR05MB4738: 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:3826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PVElm7Ju9tIK5EEqBZ8SSuvPI6TbHm/e1A82HMTpFOt8NDF366aet2ubTuFuwSYL82gyMP5JfeupYvJxcykRctWdn5uHk71OaK2YNukFigpTHfo3ZTMqvGJzkzT/BAVUQtyArTz5tEsWukthuHqPH/GzvmhD0a+ZQc5MxmdViy6Zh6mYypNhBgPViUt43yiqACdnvgoqcLPfw31XBvgFkyPikRVDAuAK2sKYXO1sdYWbSGDkj235wGPkzpKLdDl64wHiIKX6RdmKn/Ylmkty4q27mLGhXMRsxBNTdfEfYi8wKpS/FX5f41xWFZ5L7m3W8g+kHnq2kAV0ZEXxl97LEg== 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)(376002)(39850400004)(346002)(136003)(366004)(52116002)(107886003)(5660300002)(2906002)(316002)(36756003)(8886007)(6666004)(7696005)(6916009)(55016002)(8676002)(478600001)(2616005)(4326008)(66556008)(66476007)(186003)(26005)(66946007)(54906003)(83380400001)(1076003)(86362001)(16526019)(956004)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: JtFQVysOiB4mWGR/HwVkJRcQs7JZ/uyrnoDA7MYS0hmcpWrcN5kPfKTYLd+eWAJkzIm8FuazBrlJucrPeJxResSXVkt5XuRFNbLVvEHAyDFuBZoDXGvgU89PJwKXGg9MtohPcPpoaAM2LdcoFFDSc1KXGAXShYA9LkPYm/OKg3XSw4RccZRODjJr6a2/bjOp33HnQKtzOa/sQFahwto+OHyuVe68HTN5knJ8zZ5udrBGeno05Les1MuddTac1gNtisksz4f/r/mQkYYZB7jM6wdFk1OGYuRQ++sPaMIH2CDZpRBJ2Kb+LQON30IOfnLzW0ZPCCrHfEjpY9p9bvbNf+4qw5PFK0CvwIxdPjZEa/OUkOynp06V7/ngWLm9Kqr4XOmzaxsTs7ybCfVoyew94EpOXXLE7hcre+Mo07LL+gPa2C+zC75vrL2KFoNonrpvwQA4jvNT0s2HlnHjyS+uC4G9BAxjRXKk4FTs/Rua8dfz/maac86dt0VknDPDTTOu X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e0316fd-718f-405c-55f9-08d82bb2f382 X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4209.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2020 07:11:26.4492 (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: aogQCi+Xbcg/YQS/c43PYS7ubn/UwYeboqe8m72V+DcE54xYzrrhKOXFQgQrLIvKeckZ8G0qZq8ImIn8wa7mkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4738 Subject: [dpdk-dev] [PATCH v2 0/8] mlx5 PMD multi OS support - part #3 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 #3 v1: Initial version v2: Version rebased Ophir Munk (8): net/mlx5: move flow prio discovery and adjust under Verbs net/mlx5: replace Linux specific calls with rte API net/mlx5: refactor Linux MAC operations linux/mlx5: add setters for promiscuous and all-multi net/mlx5: eliminate dependency on Linux in shared header net/mlx5: header file cleanup net/mlx5: refactor multi process communication mlx5: remove inclusion of Verbs header files drivers/common/mlx5/linux/mlx5_common_os.h | 7 +- drivers/common/mlx5/linux/mlx5_common_verbs.c | 15 - drivers/common/mlx5/mlx5_common_mp.h | 11 +- drivers/common/mlx5/mlx5_common_mr.h | 11 +- drivers/common/mlx5/mlx5_devx_cmds.c | 9 +- drivers/common/mlx5/mlx5_prm.h | 15 +- drivers/net/mlx5/Makefile | 2 +- drivers/net/mlx5/linux/meson.build | 1 + drivers/net/mlx5/linux/mlx5_ethdev_os.c | 416 +++++++++++++++++++--- drivers/net/mlx5/linux/mlx5_mp_os.c | 212 +++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 490 +++++++++++--------------- drivers/net/mlx5/linux/mlx5_verbs.c | 15 - drivers/net/mlx5/meson.build | 1 - drivers/net/mlx5/mlx5.c | 124 +------ drivers/net/mlx5/mlx5.h | 66 ++-- drivers/net/mlx5/mlx5_flow.c | 121 ------- drivers/net/mlx5/mlx5_flow.h | 12 +- drivers/net/mlx5/mlx5_flow_dv.c | 20 +- drivers/net/mlx5/mlx5_flow_verbs.c | 122 ++++++- drivers/net/mlx5/mlx5_mac.c | 59 +--- drivers/net/mlx5/mlx5_mp.c | 212 ----------- drivers/net/mlx5/mlx5_mr.c | 9 - drivers/net/mlx5/mlx5_mr.h | 11 - drivers/net/mlx5/mlx5_rss.c | 10 - drivers/net/mlx5/mlx5_rxmode.c | 23 +- drivers/net/mlx5/mlx5_rxq.c | 20 +- drivers/net/mlx5/mlx5_rxtx.c | 12 +- drivers/net/mlx5/mlx5_rxtx.h | 11 - drivers/net/mlx5/mlx5_rxtx_vec.c | 12 +- drivers/net/mlx5/mlx5_trigger.c | 4 +- drivers/net/mlx5/mlx5_txpp.c | 15 +- drivers/net/mlx5/mlx5_txq.c | 56 +-- drivers/net/mlx5/mlx5_vlan.c | 17 - 33 files changed, 1029 insertions(+), 1112 deletions(-) create mode 100644 drivers/net/mlx5/linux/mlx5_mp_os.c delete mode 100644 drivers/net/mlx5/mlx5_mp.c -- 2.8.4