From patchwork Tue Oct 9 18:45:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10633171 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 C7D4F933 for ; Tue, 9 Oct 2018 18:47:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC85D294FA for ; Tue, 9 Oct 2018 18:47:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFC3C2953E; Tue, 9 Oct 2018 18:47:05 +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,FREEMAIL_FROM,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 56BC6294FA for ; Tue, 9 Oct 2018 18:47:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727214AbeJJCFY (ORCPT ); Tue, 9 Oct 2018 22:05:24 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52199 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727218AbeJJCFY (ORCPT ); Tue, 9 Oct 2018 22:05:24 -0400 Received: by mail-wm1-f67.google.com with SMTP id 143-v6so2890677wmf.1 for ; Tue, 09 Oct 2018 11:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2OWozK8lncn2tVCdlXSBXoTDRtVUMNg77hvggFKV1zs=; b=LTUgLS7vb2WhK8dtCPPdc+ge96xRWbIB/38XP6yk1jCKP9zmYiHPz0Kx6gXV1BTeDf oetd59I2x5A4d7I4P96SMwDYQLNu7winvzahns5qRxzYpfn5OFbye740G+vAyufO/x4S 7l+bcYB5fBaxZAZ7874kM2xWxtwemukrZ5QV50Uq+Ur/a4dekmazPgMyzw/VwZaYKPZa 4/YlPYrl76S9MNvTqoEqquxoBosnst5f9ahDA/J9h0PwSh19axvDzhPOAgzH5PM8oJS1 iWIRWAeUHoEqB7l/E7i8z2VkP7PjB8Mo2GvrQqexcS6/6MhdcEuxCaomgOTq/aaC/1nX q9Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2OWozK8lncn2tVCdlXSBXoTDRtVUMNg77hvggFKV1zs=; b=CyMCkv8SKG/3AU7dSUgbRWjjv9N9p2kKbSOMzd+dvJiVtkyQ3ywraj58yfMFo2loBt LG7t7+WzR3M9O+I8mPNoKZ+K9nrvE008BF5kN0hTCyV+I2x9JOaXV4vdyd7GwkX1YOAC X3V3NWBGv3+6AYS55ijwhB/K03iuQ/6j4uIijTno/o73UAH87gEDf0166LjB1jZ6rmWR ATZWyELfElvnfGu5O2tINI1mNjP6Fx2qTw9Ztphwh8pA9nL4KR0n7cAanSB3uLlHGMw1 gOQVlT5xIVj7VNVAMw4Bx7eE/hrJmNDTOYNkQq1ErZtK6CVO3XYLXw/YT33m2jq4UcUc yvEA== X-Gm-Message-State: ABuFfoh3XdKd0vJNEtNegBn8+ypQ+MQ81vKGOO+8o1CWVDmuwMEsqQsu STs1OnwXX17moCGtXdmO2sQ= X-Google-Smtp-Source: ACcGV60TwJk4Ugl81XU+cOmfQ2XRNSOqYrnhgCTiowH2v8k4o+Iy+dGnaZYITdSoD0WK5H4dxNBb1Q== X-Received: by 2002:a1c:f010:: with SMTP id a16-v6mr2756258wmb.5.1539110822465; Tue, 09 Oct 2018 11:47:02 -0700 (PDT) Received: from localhost.localdomain (bzq-79-179-121-186.red.bezeqint.net. [79.179.121.186]) by smtp.gmail.com with ESMTPSA id r16-v6sm27093327wrv.21.2018.10.09.11.47.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Oct 2018 11:47:02 -0700 (PDT) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, kamalheib1@gmail.com Subject: [PATCH rdma-next 14/18] RDMA/qib: Initialize ib_device_ops struct Date: Tue, 9 Oct 2018 21:45:43 +0300 Message-Id: <20181009184547.5907-15-kamalheib1@gmail.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181009184547.5907-1-kamalheib1@gmail.com> References: <20181009184547.5907-1-kamalheib1@gmail.com> 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 Initialize ib_device_ops with the supported operations. Signed-off-by: Kamal Heib --- drivers/infiniband/hw/qib/qib_verbs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/infiniband/hw/qib/qib_verbs.c b/drivers/infiniband/hw/qib/qib_verbs.c index 8a45964c4700..8fe2519e34d9 100644 --- a/drivers/infiniband/hw/qib/qib_verbs.c +++ b/drivers/infiniband/hw/qib/qib_verbs.c @@ -1496,6 +1496,11 @@ static void qib_fill_device_attr(struct qib_devdata *dd) dd->verbs_dev.rdi.wc_opcode = ib_qib_wc_opcode; } +static struct ib_device_ops qib_dev_ops = { + .modify_device = qib_modify_device, + .process_mad = qib_process_mad, +}; + /** * qib_register_ib_device - register our device with the infiniband core * @dd: the device data structure @@ -1626,6 +1631,7 @@ int qib_register_ib_device(struct qib_devdata *dd) dd->rcd[ctxt]->pkeys); } + ib_set_device_ops(ibdev, &qib_dev_ops); ret = rvt_register_device(&dd->verbs_dev.rdi, RDMA_DRIVER_QIB); if (ret) goto err_tx;