From patchwork Mon Apr 29 18:13:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 10922381 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC78192A for ; Mon, 29 Apr 2019 18:14:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFEDC28869 for ; Mon, 29 Apr 2019 18:14:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B42A12888A; Mon, 29 Apr 2019 18:14:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 409AC28869 for ; Mon, 29 Apr 2019 18:14:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729028AbfD2SOn (ORCPT ); Mon, 29 Apr 2019 14:14:43 -0400 Received: from mail-eopbgr70071.outbound.protection.outlook.com ([40.107.7.71]:31557 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728748AbfD2SOn (ORCPT ); Mon, 29 Apr 2019 14:14:43 -0400 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=8I0y69iqpBWeUWPTy9T43K5RlPaQ6Kg19/CRHFpzqDE=; b=Yu51EEFrBatmArM7F13d/7ceGwrYZxV3rm+j8SeMJvoxsXIYdc2tn5wMTKEhUlPR0Ip4NiN8pgS/pB4hbd3fhwhwWVHhXEojbidJg3mOwst21b+X8CYF3s1B3wOSwl8ViAYls2sHjWfCCmPkdbTnZpCl3/alelGSBCs84HgwOow= Received: from DB8PR05MB5898.eurprd05.prod.outlook.com (20.179.9.32) by DB8PR05MB6619.eurprd05.prod.outlook.com (20.179.12.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.13; Mon, 29 Apr 2019 18:13:59 +0000 Received: from DB8PR05MB5898.eurprd05.prod.outlook.com ([fe80::ed24:8317:76e4:1a07]) by DB8PR05MB5898.eurprd05.prod.outlook.com ([fe80::ed24:8317:76e4:1a07%4]) with mapi id 15.20.1835.018; Mon, 29 Apr 2019 18:13:59 +0000 From: Saeed Mahameed To: Saeed Mahameed , Leon Romanovsky CC: Jason Gunthorpe , "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: [PATCH V2 mlx5-next 00/11] Mellanox, mlx5-next updates 2019-04-25 Thread-Topic: [PATCH V2 mlx5-next 00/11] Mellanox, mlx5-next updates 2019-04-25 Thread-Index: AQHU/rdQCT5HmbSN5kGRKvPoPpHHQg== Date: Mon, 29 Apr 2019 18:13:58 +0000 Message-ID: <20190429181326.6262-1-saeedm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.20.1 x-originating-ip: [209.116.155.178] x-clientproxiedby: BYAPR04CA0033.namprd04.prod.outlook.com (2603:10b6:a03:40::46) To DB8PR05MB5898.eurprd05.prod.outlook.com (2603:10a6:10:a4::32) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cd259b43-470b-43c1-8a11-08d6ccce7313 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB8PR05MB6619; x-ms-traffictypediagnostic: DB8PR05MB6619: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 0022134A87 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(39860400002)(136003)(376002)(396003)(189003)(199004)(6636002)(316002)(66066001)(386003)(6506007)(7736002)(68736007)(36756003)(305945005)(54906003)(110136005)(6512007)(102836004)(186003)(26005)(99286004)(14454004)(52116002)(478600001)(8936002)(85306007)(81156014)(8676002)(81166006)(1076003)(2906002)(5660300002)(86362001)(6116002)(71200400001)(71190400001)(66946007)(450100002)(73956011)(4326008)(6436002)(97736004)(66556008)(66446008)(66476007)(64756008)(486006)(476003)(2616005)(25786009)(53936002)(6486002)(3846002)(50226002)(15650500001)(256004);DIR:OUT;SFP:1101;SCL:1;SRVR:DB8PR05MB6619;H:DB8PR05MB5898.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: wf8OGOZIJ1cnmde3ULWtwMqRf/N9EBcjs7FOI2F413WnLfIk1ca2RdJqe4YnQKJA8BlMSJBWRZ3bcgxla1rNyYSaUSufk1tjrtLI6SZQdg9ax5/Kt5Q9AVdqPRiNryaVDmT2jEQ4L9GAsAHYi68VEsSJQBEFOERVQUN+/xDWG9d28Mflrsx88oaBC42Tnv4M5YOzVpu0uMFV4nZFM43Y/VNoyGFZNLDe9CI6+wa0oI+kLYI2iOf6ueUHCasiAemriS1ppfMDkn+dEHQrqERwQbd6+uYNIg1pS/HYlF3dOkqjCFnGFrgZVTffORthdt/DXDB2M9aBKQDe2uI3H3t78keE4GdDygmKJG5sQiR8ABRypCUxHzZPf+zjRC99FOcE+QY7XEwKW4S0h9R9jI7r3MlCSfm5uVDNtvWH7SjCsMA= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd259b43-470b-43c1-8a11-08d6ccce7313 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2019 18:13:59.0316 (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-Transport-CrossTenantHeadersStamped: DB8PR05MB6619 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This series provides misc low level updates to mlx5 core driver, to be shared between rdma and net-next trees. 1) From Aya: Enable general events on all physical link types and restrict general event handling of subtype DELAY_DROP_TIMEOUT in mlx5 rdma driver to ethernet links only as it was intended. 2) From Eli: Introduce low level bits for prio tag mode 3) From Maor: Low level steering updates to support RDMA RX flow steering and enables RoCE loopback traffic when switchdev is enabled. 4) From Vu and Parav: Two small mlx5 core cleanups 5) From Yevgeny add HW definitions of geneve offloads In case of no objections this series will be applied to mlx5-next branch. v2: - Address comments from Leon. - Static checker fixes. Thanks, Saeed. --- Aya Levin (2): IB/mlx5: Restrict 'DELAY_DROP_TIMEOUT' subtype to Ethernet interfaces net/mlx5: Enable general events on all interfaces Eli Britstein (1): net/mlx5: E-Switch: Introduce prio tag mode Maor Gottlieb (4): net/mlx5: Pass flow steering objects to fs_cmd net/mlx5: Add support in RDMA RX steering net/mlx5: Add new miss flow table action net/mlx5: Eswitch, enable RoCE loopback traffic Parav Pandit (1): net/mlx5: Get rid of storing copy of device name Vu Pham (1): net/mlx5: Separate and generalize dma device from pci device Yevgeny Kliteynik (2): net/mlx5: Geneve, Add basic Geneve encap/decap flow table capabilities net/mlx5: Geneve, Add flow table capabilities for Geneve decap with TLV options drivers/infiniband/hw/mlx5/main.c | 16 +- .../net/ethernet/mellanox/mlx5/core/Makefile | 2 +- .../net/ethernet/mellanox/mlx5/core/alloc.c | 19 +- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 9 +- .../mlx5/core/diag/fw_tracer_tracepoint.h | 5 +- .../net/ethernet/mellanox/mlx5/core/en_main.c | 14 +- .../net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +- .../net/ethernet/mellanox/mlx5/core/en_tc.c | 5 +- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 3 +- .../net/ethernet/mellanox/mlx5/core/eswitch.h | 8 +- .../mellanox/mlx5/core/eswitch_offloads.c | 4 + .../ethernet/mellanox/mlx5/core/fpga/ipsec.c | 86 +++++---- .../net/ethernet/mellanox/mlx5/core/fs_cmd.c | 113 ++++++----- .../net/ethernet/mellanox/mlx5/core/fs_cmd.h | 33 ++-- .../net/ethernet/mellanox/mlx5/core/fs_core.c | 73 ++++--- .../net/ethernet/mellanox/mlx5/core/fs_core.h | 5 +- .../net/ethernet/mellanox/mlx5/core/health.c | 2 +- .../net/ethernet/mellanox/mlx5/core/main.c | 15 +- .../ethernet/mellanox/mlx5/core/mlx5_core.h | 65 ++++--- .../ethernet/mellanox/mlx5/core/pagealloc.c | 20 +- .../net/ethernet/mellanox/mlx5/core/rdma.c | 182 ++++++++++++++++++ .../net/ethernet/mellanox/mlx5/core/rdma.h | 20 ++ include/linux/mlx5/device.h | 10 +- include/linux/mlx5/driver.h | 10 +- include/linux/mlx5/fs.h | 1 + include/linux/mlx5/mlx5_ifc.h | 82 ++++++-- 26 files changed, 566 insertions(+), 238 deletions(-) create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/rdma.c create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/rdma.h