From patchwork Fri Aug 18 16:44:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adit Ranadive X-Patchwork-Id: 9909607 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 6CA5560386 for ; Fri, 18 Aug 2017 16:45:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6090428CCB for ; Fri, 18 Aug 2017 16:45:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5572928D22; Fri, 18 Aug 2017 16:45:42 +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 EA01F28CCB for ; Fri, 18 Aug 2017 16:45:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752583AbdHRQpl (ORCPT ); Fri, 18 Aug 2017 12:45:41 -0400 Received: from mail-sn1nam02on0073.outbound.protection.outlook.com ([104.47.36.73]:52688 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752576AbdHRQpj (ORCPT ); Fri, 18 Aug 2017 12:45:39 -0400 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=0WWCEXw9S31Qm9F7tQPjI2gKUdsERpW8EUsZybNOXTM=; b=G/VwdxWDVQeXXRyu0PGiA3h56r8UpGHIIrIum/Ch0fdiSH2lNkVhfb7GgSZ7WIOfj+4NSfI72PjHlFa7W+x5QHMqanQUzM+O8gHn8UxojDzoml70vipHek24AXn6Yoos9nn41kQqOo3XZ7/j8aRFd7HXIaimkFI3R+f7XmBCTeo= Received: from promb-2s-dhcp95-136.eng.vmware.com (208.91.1.34) by DM5PR05MB3516.namprd05.prod.outlook.com (10.174.242.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.12; Fri, 18 Aug 2017 16:45:36 +0000 From: Adit Ranadive To: dledford@redhat.com, linux-rdma@vger.kernel.org Cc: Adit Ranadive , pv-drivers@vmware.com Subject: [PATCH for-next 3/3] RDMA/vmw_pvrdma: Add new port_cap flag Date: Fri, 18 Aug 2017 09:44:49 -0700 Message-Id: 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: MWHPR15CA0052.namprd15.prod.outlook.com (10.174.254.14) To DM5PR05MB3516.namprd05.prod.outlook.com (10.174.242.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24d5e1e6-6003-4397-1ca4-08d4e6588d77 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR05MB3516; X-Microsoft-Exchange-Diagnostics: 1; DM5PR05MB3516; 3:VaDdQbv1HTbY5pTI8g8vs1txh7GPlaL1U8xM1YFArHm84E/maLtsuJjLi3/jftKjJwLqktyQms07qKquWHkkUTbkXO+SkuzoaqV+Vy4VMhfG3tKITAIJ1KkKF+DX7kcp+fX57hnE71h6A9QU0wlz1RopOlZj8mwI4JlsajEw++o96GjzG7jaLeWcQVHUUwxoYwXE7voRejLWKFzuwl5mRxVH1A51PRHnsfLQpy1gOW8NjmFdulZlPeg4c9y5859W; 25:9P0F0g0HfLUsKosSc3P57cJ0b9ucHKkvuClQucPX/dx2+TZrC/6YI9chGJpX5qAJI6lssfxqo0UphmWaCXJr7A0fdsLTPImBbFclfL3HwyWmtV5fggnIa8IAqXv91FvLQSaKcyww26reAtpvtsDGdCpDQE++TQJYRTy02mkotent2Z9VgPWJrdYNib/orQouttZmOhu+U8norq/DalwSzTg6fee1b1SF4ixle6O5PHgip5Fs+XKPawE3MGpqD/NnFCpc84xXImEl8L9+pbBkS3cmiQ9LOgtOdfqVbhzpQ65l4tw6dSqF3SUPIuzVdaYdC+6MSkxDSd86ed9zhESilQ==; 31:Y1IebixkG2Zp1pH+6Jgl2Vh2deAjvRzlQrxZjiH/6+jL16Hy6Dpl1FyK/vohye5a4NhDFQc8OsVTg1C20z1IC/TgD8VuevcvfmTTdl/rJeBOz4I2qbUPELU7mMOtdKOcHc3ntG4D4R/ZCe4fhbbXLodsqTvcWuTdzRUaK23qUbvS+fps+EvulXWYTd6n+MzlGa2IvfRy3dnO5XPoev0fxT81ObuphGGa7uhdY8nP4z8= X-MS-TrafficTypeDiagnostic: DM5PR05MB3516: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aditr@vmware.com; X-Microsoft-Exchange-Diagnostics: 1; DM5PR05MB3516; 20:IRymMHr3/aNuO6rkRfesIHguun57bh8znB5PtAAFWmiYJbta1ZDniV/yTceSxTWw7RX09ZblCGEnX+RVpemfhzonW4C4FFWs10QNApxg5qO8CHltZP3oG8ij+aJ/AOgabUIlrLDM8xOt9aB7/pHLJLV9PW00LSe0dN5nhauJeBW39cVdbqQh1imwyZjiOvZy2s0VepkXKrsFDT9nRjDlO3M+y87Gv1LL5AuuBvQNyzKSBSgtNmwif54Gg0BZtVnOF+s2EG1DjtZMDEtWvyaQxo9/Y1RIgJ/oZ/TZddc1n3FoGzOWx4hdL8Qz4HaIlel/pgAxXAKKQeNq0NsryX/q6XrhnbZ1sjrgKVV1ZKpclqI6oD6pDqgIv2QFK7tN5wmaIQwdFMalY8+nPujp273OSSNXXYY5WTPvioNYuCo8hsH3nIZBHROUMZ+S4Z206wm8p4CY0Ww4vfAEe/1J7EheuHgvmWqrkBqMKprnM2l50tUQERiYEldFFajpXo6AzPCc; 4:0pnbeJZshr/p+maN1tQIQJZloU9zCWJ5cduod8l11hd41gfHVVqaUEhBlr//4O0B64lBQgcQiJHULIiBvr7vRDki5hd64HdBQsWBRZF9jAJd3Fl7AP1RAYsa6OtnqfC5LJiLGX95DnBCornMku3nuhDfuEFxM4fJXnxlJrwvTRyvW4K1n23iqAjMwatOW6uOkZWJxrmld5Opja5dC0xi56fXGk3/qdqgX+RLr5KqfVOvFz1XbTo2ZcszipKeMB5L4jG1m3sjqfKC9PF1TFNkyOGg3p+bd9LlWITDPWE7smw= X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123562025)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR05MB3516; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR05MB3516; X-Forefront-PRVS: 040359335D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(199003)(189002)(66066001)(47776003)(5003940100001)(68736007)(101416001)(6486002)(53936002)(305945005)(7736002)(50226002)(97736004)(81166006)(8676002)(189998001)(81156014)(86362001)(50466002)(48376002)(33646002)(42186005)(2906002)(118296001)(76176999)(50986999)(36756003)(5660300001)(3846002)(2950100002)(110136004)(6666003)(107886003)(6116002)(106356001)(105586002)(478600001)(25786009)(4326008)(7350300001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR05MB3516; H:promb-2s-dhcp95-136.eng.vmware.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR05MB3516; 23:z3cZByP08Ac/MdMj3GEZTVf/d5xdE57Fb+KIpRd1P?= =?us-ascii?Q?mpywdA1xUuqvAYpMG9xLy5k0wJQg8UA0PERsB0XcDWkY3/iTTT7dxP3Fmeyh?= =?us-ascii?Q?VL1uam80v1pUveKi53fUgkLCunWKTS0h2GioqYYBg+Z3x4GppSxpd1Vcxk+x?= =?us-ascii?Q?xLgkQm7PEY3S5x5bv7vnuqpgBVIJeNomIWVw2raoqOxdAzHI6dOXo7tIUOrQ?= =?us-ascii?Q?9qjb/hc8DaYYvKAVN03nX7rK/MgIlHdYVFwdEEO4HtGBxce89/fsKPnfdzdi?= =?us-ascii?Q?8ADvZiR4CdGfD5PrGPoPZMNo4tGsqBYd5ST4Ne6DspiLM6IRN2aeWzeFNgKk?= =?us-ascii?Q?XuCRcqS7j48Z7raLD1tZUpDxVAiwCXs9I942s+o9OtsLR8OtfIx2WZq0lyO9?= =?us-ascii?Q?XANbAgunAU+rg3nNxSGq39blT5IN6dL166g49KsWIOq6RMcwSkp2av8+FitO?= =?us-ascii?Q?qW7/QsBACTRlV9+jBk4YWlqvbjyJq3uvraPJKm2bUnF0rougOZA9lulQWRg6?= =?us-ascii?Q?bkhU7YOgoVPizKvzDOGOgpW9EYGTJJZX22akArxVkaFicw4ptwtgbbsshGss?= =?us-ascii?Q?pXT2n17JmYNSAHLT93RohJVstV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qK354ADFXsQZm0dtUJW2xNh1HVrgLFadyUN5qLyH14gl7Mg==; 24:o45xSBu5EtZJwoeQ5JoArAe/tohB04IqRKpSN5dFox4cBPnC8dVoJ4bv/BZJnGqBFWvjpz9DIjPJsDfIEOLgZErLF1Rnw7kODDcnNnOJ+Jg=; 7:TIB53AkFD4O0Kvix4VcF6MTP/lHeO8e1DsGggbBsLjm75H1udndUaF/ympUIS60iHyS0EsUUT4LiQ3Dn8pSFEPtacm2UIqiVouSiUvj+kZ6sg/a8wnRj9ib2svKlIErviJVdknuh72jRrMNSgrSDfMkB9hsFhI+Gfja9k91Z2cN2IeJbCIV0l+DBrkvjlfEvAhP8VKhJaK2c+LDS3CyGQmXsEUezZjXV3NfUwvUzVHE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR05MB3516; 20:E9ppITQUiZgnWN5gQEI0zB/WAbNUonCowtVHjrkjbx3SpqdohTxRi/PcsWl8jTEaYdwMjBEWGj8GZFMsucYbT9uJZxCTyQu8CMEWa3mRTA9Sp+yJrvsFY+N/uuxFileM0tzvVeMnk6B+y5E4okV+2G+/S3qvqsFInN35Sne3yzA= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2017 16:45:36.5049 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR05MB3516 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 Set the IP_BASED_GIDS port cap flag for vmw_pvrdma. Acked-by: Aditya Sarwade Signed-off-by: Adit Ranadive --- drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c index 0b19d1a..1a367b7 100644 --- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c +++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c @@ -152,6 +152,7 @@ int pvrdma_query_port(struct ib_device *ibdev, u8 port, props->gid_tbl_len = resp->attrs.gid_tbl_len; props->port_cap_flags = pvrdma_port_cap_flags_to_ib(resp->attrs.port_cap_flags); + props->port_cap_flags |= IB_PORT_CM_SUP | IB_PORT_IP_BASED_GIDS; props->max_msg_sz = resp->attrs.max_msg_sz; props->bad_pkey_cntr = resp->attrs.bad_pkey_cntr; props->qkey_viol_cntr = resp->attrs.qkey_viol_cntr;