From patchwork Fri Apr 26 21:58:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 1091808 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="BWPINFyh"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44rScV2NfZz9s00 for ; Sat, 27 Apr 2019 07:58:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727151AbfDZV6s (ORCPT ); Fri, 26 Apr 2019 17:58:48 -0400 Received: from mail-eopbgr140075.outbound.protection.outlook.com ([40.107.14.75]:2016 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726871AbfDZV6s (ORCPT ); Fri, 26 Apr 2019 17:58:48 -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=2m7UHBL/ZkB5KtrEt1fC5lyEUGxYRwTNXYCHmEWj9JE=; b=BWPINFyhly6uAE4eCo/OH/lQLfSZkPWzctZSTdLRE1fgogHP4PipADfG/bYYcbgse7D5IVE4lkXb/a40QkbV/7imm6GWo6FBdJDG5SpGPURMa530wyJy0iYSpmQDRm5Vucj7lI29N5drKXJBPw+bBmrVKB0nfaHjvn1PJNE+aRU= Received: from DB8PR05MB5898.eurprd05.prod.outlook.com (20.179.9.32) by DB8PR05MB6025.eurprd05.prod.outlook.com (20.179.12.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.19; Fri, 26 Apr 2019 21:58:03 +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.010; Fri, 26 Apr 2019 21:58:03 +0000 From: Saeed Mahameed To: Saeed Mahameed , Leon Romanovsky CC: Jason Gunthorpe , "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: [PATCH mlx5-next 00/11] Mellanox, mlx5-next updates 2019-04-25 Thread-Topic: [PATCH mlx5-next 00/11] Mellanox, mlx5-next updates 2019-04-25 Thread-Index: AQHU/HseyGJzbBjie0SgFPDueiZghA== Date: Fri, 26 Apr 2019 21:58:02 +0000 Message-ID: <20190426215732.29761-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: BYAPR04CA0001.namprd04.prod.outlook.com (2603:10b6:a03:40::14) 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: 6cde3bcc-d859-44f6-f26a-08d6ca92411c 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:DB8PR05MB6025; x-ms-traffictypediagnostic: DB8PR05MB6025: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 001968DD50 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(366004)(136003)(376002)(346002)(199004)(189003)(450100002)(71200400001)(305945005)(3846002)(64756008)(6116002)(486006)(6636002)(25786009)(97736004)(15650500001)(186003)(6486002)(53936002)(6436002)(7736002)(2906002)(68736007)(6506007)(6512007)(81156014)(81166006)(8676002)(386003)(102836004)(26005)(99286004)(8936002)(86362001)(2616005)(66066001)(4326008)(50226002)(476003)(66476007)(1076003)(66446008)(110136005)(478600001)(5660300002)(66556008)(14454004)(36756003)(256004)(316002)(85306007)(73956011)(54906003)(66946007)(71190400001)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB8PR05MB6025; H:DB8PR05MB5898.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: wx5t8JCNyyB2jqF6yFpHdG8LrFiUMsihXXbsP6r0+tkmxFr679oScPfOVQ6nmXdxNhV6kenfPByav+QRwEKYBLtzDr0CbfKuo8P0cJcHs/qUhjxJq0ptQfNa+eYMYieSJZrY4h1P1jJYVzF53QnjolOr3yOpHBL+jEew0UJufBObIASzonj/hMwtY6+VjmKCYSm817HkhebR7tbZa7icNd2gzeSh4X/psXWnTD+jK+cUMR6reQ+APzjCg0smGr7fXZjH5AXxDy6/nfFlGzOfwrRNYWv3vqi9f9hHRmtTieYvOc24w8D//Wo/TXtma3c/H74etHd3xyb4rhUdeSclEHNgIyYdNzlYUR7PsKXm6CUa2Wp87KZtcxPS1B+enV+QYPvJpegph9mN+Hoqf2HGmkqWM0r4c9WjdZynZq3UtzE= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6cde3bcc-d859-44f6-f26a-08d6ca92411c X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2019 21:58:03.0629 (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: DB8PR05MB6025 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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. Thanks, Saeed. Acked-by: Jakub Kicinski --- 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 | 9 + .../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 | 181 ++++++++++++++++++ .../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, 570 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