From patchwork Mon Oct 3 02:10:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adit Ranadive X-Patchwork-Id: 9359925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0CA5D608A6 for ; Mon, 3 Oct 2016 02:11:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F398428904 for ; Mon, 3 Oct 2016 02:11:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E704A289C4; Mon, 3 Oct 2016 02:11:21 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 778D028977 for ; Mon, 3 Oct 2016 02:11:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751503AbcJCCLU (ORCPT ); Sun, 2 Oct 2016 22:11:20 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:46320 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752115AbcJCCLT (ORCPT ); Sun, 2 Oct 2016 22:11:19 -0400 Received: from sc9-mailhost1.vmware.com (10.113.161.71) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Sun, 2 Oct 2016 19:10:45 -0700 Received: from EX13-CAS-005.vmware.com (smtp-inbound.vmware.com [10.113.191.55]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id DA5F418086; Sun, 2 Oct 2016 19:11:17 -0700 (PDT) Received: from EX13-MBX-031.vmware.com (10.113.191.71) by EX13-MBX-006.vmware.com (10.113.191.26) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Sun, 2 Oct 2016 19:11:17 -0700 Received: from EX13-CAS-003.vmware.com (10.113.191.53) by EX13-MBX-031.vmware.com (10.113.191.71) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Sun, 2 Oct 2016 19:11:17 -0700 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (10.113.170.11) by EX13-CAS-003.vmware.com (10.113.191.53) with Microsoft SMTP Server (TLS) id 15.0.1156.6 via Frontend Transport; Sun, 2 Oct 2016 19:11:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5EZ7BH3EtCda2Y3w8uMl3MfS2ziy7RKqkFPtoF5KogI=; b=WSdriDxETwMn7rfHw8hs2OlEm52Z92CuooFtFPoUArVeFeLdbLl+sBVmkwy0298Ab5lT8v8iyG140csaMSd1GPGRCtYl3gQi1RgPlYJzFyqsRzgZ3Ib0v4S3VBL10wPiXSz48J/VUy4FBUXYVi5no4zahhLRHs4MpC36n0zKvjU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aditr@vmware.com; Received: from promb-2s-dhcp95-136.eng.vmware.com (208.91.1.34) by DM2PR0501MB841.namprd05.prod.outlook.com (10.242.115.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.6; Mon, 3 Oct 2016 02:11:14 +0000 From: Adit Ranadive To: , , CC: Adit Ranadive , , , , Subject: [PATCH v6 14/16] IB/pvrdma: Add Kconfig and Makefile Date: Sun, 2 Oct 2016 19:10:34 -0700 Message-ID: <5f568688d24515ae8e0dfb99aaf0c4e1ccc3dc3e.1475458407.git.aditr@vmware.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [208.91.1.34] X-ClientProxiedBy: CY1PR1101CA0039.namprd11.prod.outlook.com (10.169.17.49) To DM2PR0501MB841.namprd05.prod.outlook.com (10.242.115.147) X-MS-Office365-Filtering-Correlation-Id: 637d2600-183e-421b-f08b-08d3eb328e33 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0501MB841; 2:nCAdzfZpN7y3ThDWBO+pErXSwrSQiZtaC2CCuTv+SJW6TqysGJnPEoGXNC1B8aKxIM/UxRpxyWwUb8CAll0uoEDhe7Xzz7hipPv9pBzcSO2bkM1tVHloy7d9qsTuqRGozfX5XFI95tZ1urS6phM88zzjvhSO9knqhx4fC2//il3OBeJnrm4oEtFl/+JcuwCzMTSWWNsX12uhseaHblUB+w==; 3:16n+u7Cjs+TCHhEnz3IXBpkGXTzRUle4mPXKQBzgiVEUqvZEUCgEqzYk2oEp+tdzf0ILlRqKBk1A2NshuUqCKQplZIPnebQci4htW5tkfbZAj1Vloy9/TTporGCINxUy+KqCqVDNi7wpiz/hvu0Nnw==; 25:4GT61UtGD73xPlmWLLE1Imi5EWVn44foLPJ6Nm0zmhQVE5McBNIpF9aS+YTQZu8pm4Sjm0FmrG78plDeT7NxYSc7U0kAWW0kkO3fIgYYodyRdKdcwbwG4I0dQt2jgKGMOhd6Mmc8zAAhsvJZTEdQ1qYO/I5L0CUHE+ofcZx7jrvvAd0viraY20FjPQTDEgWGZROf0y9C84x4tvoTw95DkHT+K3gv92Gv1TmVfZPbsEp/bIPVrL4/4mJKxKi4+nRfBotkF8uhBMQoYZKc7Im4F6YiAzjSS+18TM6hVZKr1POBcC+FLCJlOorQkO9U9yX79rEONWuyuTWcOvsYvR7/4b8I6BBerpAibJ8BI8x06HX7Hx74DnQg1VuQZtUIzAdlR9tCj2rzrG468kPkz2bKERwX6p9v6q0mBUXANKO6DKwBcWrXsbr2f923vYSN2XHq X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0501MB841; X-LD-Processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DM2PR0501MB841; 31:rXpW1C7FgrWSvfejkGZNM1gUf5hIAQB9xv/LN9wtuKUnqJpm2rp4aRdqVXmzlb9Ydg8+J+HAjnRDTHf8Jp+s2IdOQKVrkauG16U4f/yGdh9Zl7+fZrxIDyPbFm+/dTEDZ8de5Y0kBvDl9o9SK04+rk1FkIf5QSgJWQiNuc2k3mmHlxNp5xfG29kAl3iJh00//zjE4wPMpjKvpP5ANcPAH2D3xPLKpUITyXOrV6SQ2d7Q/L2p+tRNcUUYxbVohDAVw2d604izRnjHYdaXq0DTFH6vGEiZjnTEi2LMmL3hblU=; 20:BOBusYskVJ4jHMmsM9pVTRj/8FioayW2YGWsviaG9gK3Po/ly5HsQUPqnxhucNaDx9G04PgPFqPugdIqLp6jjQ7TtbdfIm6vPgOKdNptFIp+Hx7f9tG6uzXm7TKYngyZ45I/9uMrTsj8IE2crn3hZ4F6KGiex4Zh4xm4vMGxmOk85Yff9LQT1oAForLxI4vuWuaXipwjHpnOkxFpdrwQOa8xWV/3rHmQ+FS5+jgFWrr+RWqEaPcEZzymH5OqntLvLPGHdt0qHUvFEGxYckEOi2O56TZ/lTNn/LOFtq7vTg0y/u1MXUM1SsdMcJC7akNICUdK91xZPiJ6u3D37LFDgGZxOql0LlcDTE6E2v7znUcTxytVb4BQN/8zxpIeGfpeLgljP4b2JqxXrytZD1OKaI4BLMQpTJEdik4PsN3YDpi9bBq/ZlBXU3y0+nrGZ2opc8JSP5pjVSn6v5A9rivabFMymHEDnXCxDSMusP+Cu92oft7naaREfMV9tu2EAXkr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:DM2PR0501MB841; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0501MB841; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0501MB841; 4:jIPDkfZmPb4SU3GmnNz/4iY14W/nLrC4tNXWUXhB5yryumukwPuuyiFBqijPCzOF645D74bgKHS5KuLoHKfnd/In+iux09q8mTWIfZZtrFqLd/g6efOcQ6K8vGXr8BdQtaKldTHSgW25O5w8Oo3QY6iFZv2H8pBOzQROjMaLz1ctc7zCKlHySySe1AUKURaaq2a4hhs0WLmvcieAUhPFDPk5RG4zzfsXKz/hybryHPrpe+l3hBLziDNmYbSdJ21EAzBYup/fvxiJjGCbY8BTyToFcZNpVZhoMCZUyizrwIvhIT5a3KzDnQe21WOGQM5YexHbU6JLNaJ7SXwm+i9HOycxNPQ6EyYOkrXoRyJFvrvNeYAIJNXkG36g6wmxDonRBHrXP9S1rSjCZ1eueMd88AIVu9eYvEA4URT/VwK5uROSYN8dkZ1b4/zTP5q1ZZsFNTO9hiQIxElI1T9K2V3U2A== X-Forefront-PRVS: 008421A8FF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(199003)(97736004)(189998001)(42186005)(19580405001)(47776003)(8676002)(5001770100001)(33646002)(2906002)(19580395003)(77096005)(6862003)(50986999)(76176999)(106356001)(2950100002)(101416001)(5003940100001)(4326007)(5660300001)(107886002)(105586002)(92566002)(7846002)(7736002)(586003)(118296001)(229853001)(68736007)(4001430100002)(305945005)(2201001)(48376002)(6636002)(50466002)(66066001)(86362001)(50226002)(6116002)(3846002)(81156014)(6666003)(36756003)(81166006)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0501MB841; H:promb-2s-dhcp95-136.eng.vmware.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (EX13-EDG-OU-002.vmware.com: aditr@vmware.com does not designate permitted sender hosts) Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0501MB841; 23:UmdtrCcHCDyeCHqpquhYubpD1IUt/6hs1fJlMalc?= =?us-ascii?Q?UoWNcSYOHlYrL2vwn1xau7nSS5aEBtv3OjQDfq36Co9r0IzLAmffEZosrWg5?= =?us-ascii?Q?G87+5S+h3TGzvYbzjn96NGb79hGqC71J41zJNZIQb0mibAfTiW9rWgGG+Y5b?= =?us-ascii?Q?Vl3w7i0sL6SiUpYYdNKgla82v+TUEDf8lDuRrc4cd+YcIYP//8RxxO8lbaqQ?= =?us-ascii?Q?YvwstjUrTUE6CuGSL3firltdyGW3lII544wjxovGowUvE4r350rAbns7VRCV?= =?us-ascii?Q?BGGjEv3xGyNJcBqXgHVWCFaIKgG6zzs6WqDMFWko0WNDxJ1YB+6zmoI9mvKu?= =?us-ascii?Q?040rPXb/uJaBs+CRxdvu/6Xz0aVVD17DAhZNh1kzeRuXPqR/4KOcmJvcFd/K?= =?us-ascii?Q?Z3NyFhGM+dPBd6lOKkxcxCNm2UM60oQ0TEUN/jNQChu6hOZhw7c6QIDS7Ri2?= =?us-ascii?Q?hmXqnT3icq82cSV+f3BeCz6DR9eEpVpMg6CjBxnrdw9JYrBP/xMELIeB9XUF?= =?us-ascii?Q?97+tZz+3+PlL4JjWvl6JVymeliKkYO2ozPbMTK1OPGgIopkbqza2IXxGBRFX?= =?us-ascii?Q?uGkfvooHfEqwqUN/6LdAGOiXc/E5smgfEHjv3RRb1ftfP4D1vDKSoRDsJI8N?= =?us-ascii?Q?q4ePvnmdT1Tczf9CKlp5Z4M/L3qK9KVqiZ67WYfnMzS7Nadfrv+whOhO3lU4?= =?us-ascii?Q?HAZkvscKmqehMyy4apnGhLfodH2kUl2e/pj7QrZAWMGbgzCnGz7e9LPLJv21?= =?us-ascii?Q?IIOjmUoRukLVoNK/j/CjuKhAAX2+6ENgVxxRYEon7V7iBsyvg2uGQnhwUsda?= =?us-ascii?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xkLNjXenv1UDb7c3J/6D4QHCdUMUgAYshi7cspHPiLXvK1MomtkbBP3mC6c2MH1klkU2v2xGsZfqHPJxa2wwPLeVWU=; 7:DG5u24Fu/z5f/DKmTtZ65BMrhhJV026osdlgSMNXCdhUuZoxv2YhUlNiFUJm/Ktb71lVcdJIdH7p8QdrNNjwG/50rhZdQzOaqVXw12LsCLQPbwfuH9IIJuKm9mp8Q8GHSa6bO3WZbF8I9ZdfHmppjlCpCbvq9VO35dz14OYbyOjAv4DZCnExUgMJbhAZPSr6DEhMLFDre7sgaqsOYtpQ5WetjIGN+ZxI6R0VSR8vkS0UKtV/mZSLwayvIhFL/VlIDEw6UM1VaXqA4kuITbGCQsT968Lma6vSWO+uZJ/E8N2c7BLCHuGy4ijDbQqyW7E16LrL1oK zW3NqrXMQowAylg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0501MB841; 20:oCP6GhSLSZCoT5PKm95q80PS7zg4CEOvLhbWBfc5BlWNsg7i60Ax2zr7TJ4jb5rTZNHaYjBLAhAfnfhm6n+j+VJTmGM7KjF0mvMeGD/381lT6k9888myaQGvZkvGcQR6Ou10AbAC+1HQbkJIcW9mhx+iaC+qloxcVywRQgZkaEc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2016 02:11:14.6895 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0501MB841 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 This patch adds a Kconfig and Makefile for the PVRDMA driver. Reviewed-by: Jorgen Hansen Reviewed-by: George Zhang Reviewed-by: Aditya Sarwade Reviewed-by: Bryan Tan Signed-off-by: Adit Ranadive --- Changes v3->v4: - Enforced dependency on VMXNet3 --- drivers/infiniband/hw/pvrdma/Kconfig | 7 +++++++ drivers/infiniband/hw/pvrdma/Makefile | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 drivers/infiniband/hw/pvrdma/Kconfig create mode 100644 drivers/infiniband/hw/pvrdma/Makefile diff --git a/drivers/infiniband/hw/pvrdma/Kconfig b/drivers/infiniband/hw/pvrdma/Kconfig new file mode 100644 index 0000000..b345679 --- /dev/null +++ b/drivers/infiniband/hw/pvrdma/Kconfig @@ -0,0 +1,7 @@ +config INFINIBAND_PVRDMA + tristate "VMware Paravirtualized RDMA Driver" + depends on NETDEVICES && ETHERNET && PCI && INET && VMXNET3 + ---help--- + This driver provides low-level support for VMware Paravirtual + RDMA adapter. It interacts with the VMXNet3 driver to provide + Ethernet capabilities. diff --git a/drivers/infiniband/hw/pvrdma/Makefile b/drivers/infiniband/hw/pvrdma/Makefile new file mode 100644 index 0000000..e6f078b --- /dev/null +++ b/drivers/infiniband/hw/pvrdma/Makefile @@ -0,0 +1,3 @@ +obj-$(CONFIG_INFINIBAND_PVRDMA) += pvrdma.o + +pvrdma-y := pvrdma_cmd.o pvrdma_cq.o pvrdma_doorbell.o pvrdma_main.o pvrdma_misc.o pvrdma_mr.o pvrdma_qp.o pvrdma_verbs.o