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 2C436A0540; Sun, 19 Jul 2020 12:18:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AD1811C066; Sun, 19 Jul 2020 12:18:28 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2043.outbound.protection.outlook.com [40.107.22.43]) by dpdk.org (Postfix) with ESMTP id D2E502C38 for ; Sun, 19 Jul 2020 12:18:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O2B5BNGcEEwpEYlG1TJv6tNYXe0eMjdWfEnpTjmNHMTwyQwYQN+Iysmt0mMEaJpDHmOl7HgrzB4McOFATbgoZ3sDrd/8DS06R4NO3MWfE6p7PnpvUm5jKVaMrOaOh8D9IRIszxt3bR3F07KEwv7MBebXRYwDgi+f8JBFe0n6KjQksfT3cLWLkeVClNKHNvjadPGbwX0mDWQreaGWw7TSqsiiHrjpj74ehWb2xbNrRawWMCbbqTYCPelwMSjcREh64gz5bwtidlJNA+iCg0apQFn2RO/dg1WgGiraUOO0zuIFUNPutiMhg/UyCA48vrz5BjR0kp1FkYZjgrXjDGK0lw== 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=+xAl7lM6Epi3LOeP0GsYzgT6rdh94zoJlSj7fUZy5FM=; b=QfkAqg428vOyBoa7QLUg0FvDhwBaEghwSkh2v8DvUIU+H0F0LaJN82EmvRoOvWQDyvCAiYnjngKBZI2XHC71XaVjhxRRz7JYCsjtoWd8Z3DoLH7Hn5acD2aHTKQJqHFKrwl4P/xLO5Yn/Y9Yv/y72FvfRmcILpEY0mmfyVxwhr5WYHTlJHE1mD1s1JjNQPS+9kMU50ycUEoMPfwgPZ8oEeQfZiThMxl/VP1LesYG24dMQWm14IfwxhtylMknMdp6KKaJAG5Ly6bpCJzsgKGrgmHEmUK2wFakRH/Pu/6rk6Q/jQ0VtplvGfZ6b3uEGcuUNy7IpMF8WXydoH19hazd2Q== 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=+xAl7lM6Epi3LOeP0GsYzgT6rdh94zoJlSj7fUZy5FM=; b=LXqQjButbMjlQoZJpsgLz8QGSVFmHW17ZxBiDGnvIzOpATx+TMALrTRgDXVuDsUw7SkPZJQ9ZSth1Kg0VXX+CgIUM9EpFDxb8k0yyiKWbtuZDYkbtnVxVhjhBpSLhaexDBx2shQ70oB1S5VmDpLI1LCRvx0x91UA0yHUEeEoZI0= 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 AM0PR05MB6324.eurprd05.prod.outlook.com (2603:10a6:208:143::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Sun, 19 Jul 2020 10:18:25 +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 10:18:25 +0000 From: Ophir Munk To: dev@dpdk.org Cc: Raslan Darawsheh , Ophir Munk , Matan Azrad Date: Sun, 19 Jul 2020 10:18:08 +0000 Message-Id: <20200719101816.16406-1-ophirmu@mellanox.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20200719071112.8540-9-ophirmu@mellanox.com> References: <20200719071112.8540-9-ophirmu@mellanox.com> Content-Type: text/plain X-ClientProxiedBy: AM0PR05CA0090.eurprd05.prod.outlook.com (2603:10a6:208:136::30) 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 AM0PR05CA0090.eurprd05.prod.outlook.com (2603:10a6:208:136::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Sun, 19 Jul 2020 10:18: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: 13358287-b3ff-4642-7f03-08d82bcd12ce X-MS-TrafficTypeDiagnostic: AM0PR05MB6324: 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: L3+fnZGcN8MJkdzsWhvWkCoSZyu0BmKIzvYXuLGcncNEjT7XjBCa+G6O5+fNPAxhQez7RlG+/DFI5BsIIgHXPLSyoBu6zLm/qOmzwEOC21x55WxiRvV2DHQpCZyh9zHK1XRtiFMt5/Hf7/LhzY06g+fEx2MgBl+5jiSznpqpwuqBGVTTulmfDxnEsuK8CYe5rMyv3twWzVLy6/2KeOD1fLHvVFwGKu/e31oV/HjWxEFmT1p9lomrlktfw/OxFfGancNsGujbMaX/j4vHGC3lWYQC93DSXcgA2e8RTta6RDG+lbWDEJTFni1AaXb0EbeDs3iV+dZxiav6YNqbDsi15A== 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)(346002)(376002)(136003)(39860400002)(366004)(5660300002)(316002)(2906002)(36756003)(54906003)(186003)(2616005)(6666004)(16526019)(4326008)(83380400001)(956004)(6916009)(26005)(478600001)(52116002)(7696005)(107886003)(66556008)(86362001)(66476007)(66946007)(1076003)(55016002)(8936002)(8676002)(8886007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 69zpisbZzCdBqxIpBTPAQAoyTNF+nGKnmjukRnOiGTyRHiYGLiMutFML8jS4q6vPMHweTJPuYH/nNQdy8LfqobpsIvNqgu53e/xwgZMBgdeHE65LvCjcfwxJ7nTqz0X72nI8IHL3tHegNyY3mhCKyz4ETrrgqECWG1HaPJJSb6nrW10yte0Pi7TD7Fy4TwjyjI2ZWms3siFU64gWiXcSX3wlOU3TuZtLpivhr5FgLnu7cQOQM1M+UpV9nKONekEqB+SSgiAl+vx6oaNDOdNXsknlzFCaXyoK16hHKghMGTqr/zxroW92e7voNaqiUgj70o+479JFNY78Fm6v6knrXewIdYGGjcOIi6x/WO0zVWwAJa/8i0GnXfdbSvQVJq68IkM9mZwlycJb4ECpDB9bY8XDjlHxnjBSGdlj9FRjTVxJDz7vM2JbggZjpL9HGPbbSPCQ3WefHiDM5+C6O0gi6/hVTk8Dtsff+NvWMyk7bgeYWfE4FfVkzCbIUI3mo/Sk X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13358287-b3ff-4642-7f03-08d82bcd12ce X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4209.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2020 10:18:25.8656 (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: D+i/q/ybyM7k4hITkhgqbsaKsf2wtcAMWxzJENeBz37e7YVXhmjbJzs0vsL/FfEaqtOZzx+GPlsCwW52T0ZbHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6324 Subject: [dpdk-dev] [PATCH v3 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 v3: Fix coverity complain: BRANCH_PAST_INITIALIZATION 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 | 57 +-- drivers/net/mlx5/mlx5_vlan.c | 17 - 33 files changed, 1030 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