From patchwork Tue Jan 1 09:30:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 10745933 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 F040F13AD for ; Tue, 1 Jan 2019 09:30:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E400A2877B for ; Tue, 1 Jan 2019 09:30:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7B4228776; Tue, 1 Jan 2019 09:30:58 +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 7A9A228776 for ; Tue, 1 Jan 2019 09:30:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727300AbfAAJa6 (ORCPT ); Tue, 1 Jan 2019 04:30:58 -0500 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:56084 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726389AbfAAJa6 (ORCPT ); Tue, 1 Jan 2019 04:30:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1546335057; x=1577871057; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=nkMIsRrLiKIKOQjl68Eok5khnizNlL+HTDIdqLxaAxE=; b=BZhtZkB054CiLlx5P2sovD1O6JXr7CnLjEcCtnQsduhIia7lbjTCNInm LR+qMUHoiXBcsJafIpUO95kp0wpRwg19PINPWWSo1PVfj14oO+6KQH/9b CRXul245jz59t1CTGfVV7kMXqXL6muBe2U+wotH/Lx2RIL4rXIWa6N0C1 M=; X-IronPort-AV: E=Sophos;i="5.56,253,1539648000"; d="scan'208";a="752191441" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-74cf8b49.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Jan 2019 09:30:56 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1d-74cf8b49.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id x019Urli030299 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 1 Jan 2019 09:30:54 GMT Received: from EX13D13EUB002.ant.amazon.com (10.43.166.205) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 1 Jan 2019 09:30:54 +0000 Received: from EX13MTAUEE001.ant.amazon.com (10.43.62.200) by EX13D13EUB002.ant.amazon.com (10.43.166.205) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 1 Jan 2019 09:30:52 +0000 Received: from galpress-VirtualBox.hfa16.amazon.com (10.218.62.26) by mail-relay.amazon.com (10.43.62.226) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 1 Jan 2019 09:30:49 +0000 From: Gal Pressman To: Jason Gunthorpe , Doug Ledford CC: , Alexander Matushevsky , Yossi Leybovich , Dave Goodell , "Brian Barrett" , Leah Shalev , Sean Hefty , Gal Pressman Subject: [PATCH RFC 2/2] IB/usnic: Mark device as a non kernel verbs provider Date: Tue, 1 Jan 2019 11:30:25 +0200 Message-ID: <1546335025-31360-3-git-send-email-galpress@amazon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546335025-31360-1-git-send-email-galpress@amazon.com> References: <1546335025-31360-1-git-send-email-galpress@amazon.com> MIME-Version: 1.0 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 Kernel APIs are not supported, mark the device as a non kernel verbs provider. Signed-off-by: Gal Pressman --- drivers/infiniband/hw/usnic/usnic_ib_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_main.c b/drivers/infiniband/hw/usnic/usnic_ib_main.c index 01ce45d72e68..ec5f043bf4ee 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_main.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_main.c @@ -420,7 +420,7 @@ static void *usnic_ib_device_add(struct pci_dev *dev) ib_set_device_ops(&us_ibdev->ib_dev, &usnic_dev_ops); us_ibdev->ib_dev.driver_id = RDMA_DRIVER_USNIC; - us_ibdev->ib_dev.kverbs_provider = 1; + us_ibdev->ib_dev.kverbs_provider = 0; rdma_set_device_sysfs_group(&us_ibdev->ib_dev, &usnic_attr_group); if (ib_register_device(&us_ibdev->ib_dev, "usnic_%d", NULL))