From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 848F6C433E1 for ; Tue, 14 Jul 2020 19:35:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5EBB322AAE for ; Tue, 14 Jul 2020 19:35:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Nl3Q9x/O" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729362AbgGNTfs (ORCPT ); Tue, 14 Jul 2020 15:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728768AbgGNTfs (ORCPT ); Tue, 14 Jul 2020 15:35:48 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E76AC061755 for ; Tue, 14 Jul 2020 12:35:48 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id o2so8929945wmh.2 for ; Tue, 14 Jul 2020 12:35:48 -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 :mime-version:content-transfer-encoding; bh=F52xxdHJpk+aUYTGQsIRXXmLKYtmUocjdywU/DRMnjo=; b=Nl3Q9x/OMqKWrKY0RLFo/Z0KE82qIagjpPEjAaTF6GR1wC0g9WxZtyXjA3c39zu7iH t5xonN7LsK7e+lxlltYuIgJBJpU6JbXI7YBVRjerdLsvv2+2EQJXDPk/fbVz1g+8NHYD gD6vecC0ABz2Kzf/m0ZqwIvij8r7DWlyHR7g91K3m/l94Nz7MmQu1eI9s9C0ESijNvD8 F01YzAij+cVut820h/z3OBxmfhNY9ULumpp2obVv7ZHxyP31eHtDYJnBpPz0kvnpzQP0 ByR4AoejDTWrJ3Pvrz7QIoW17wKvj5G6OvfpkeTiFANx1DY1VVC0YoXsUa3FQe7pMhmG IrHg== 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:mime-version:content-transfer-encoding; bh=F52xxdHJpk+aUYTGQsIRXXmLKYtmUocjdywU/DRMnjo=; b=k8BgZqOqujQG5XbpOm/TrU77efiFXbget3hux+Qr4I+Kqo1GvGIqJFOFxImSXSPYfN 1W7EA73ACiJTgw7LChEyRpJkz2fCzW8MvWzJ+AUecChSS5rWEOs9iJK2ST/Oo+/DWxbM 9zl2BQ3Dg9bQdOGDy1aOVi6wxutreaLrrMoZcbSObceyon3Tki4n42KUkQKERwSy5yTW NSJPOGnH+Mg3qYr6XKy9QiQi0SjvSSoVJvfpRR9fHlhuowf3HNY4SEQnJU6TRnan6Y2I do/Nn+/Bh8bsosdoXLtGN8lW7RttqPaWKrnfLX1BVhsuY0Qx266ua/8kTrrfzb94ddBm TqLQ== X-Gm-Message-State: AOAM531ute6IQDa7vQfOGmXIMwKZ3c/9ek5pFXC8PrMYaPsrwYZuDCGi IyNQkK5E21ZoMHTmGv61bzDkAcd3tuA= X-Google-Smtp-Source: ABdhPJwUgd7x/ZH1pJmVIKLMufmthU8vrOfXxZ5Bp7/5NEG1yOnR0yS2x7vb+NRxxJa0a67USqKZeQ== X-Received: by 2002:a1c:e910:: with SMTP id q16mr5191791wmc.188.1594751684799; Tue, 14 Jul 2020 11:34:44 -0700 (PDT) Received: from kheib-workstation.redhat.com ([37.142.6.100]) by smtp.gmail.com with ESMTPSA id 190sm5728982wmb.15.2020.07.14.11.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 11:34:44 -0700 (PDT) From: Kamal Heib To: linux-rdma@vger.kernel.org Cc: Doug Ledford , Jason Gunthorpe , Michal Kalderon , Potnuri Bharat Teja , Shiraz Saleem , Bernard Metzler , Kamal Heib Subject: [PATCH for-next v1 6/7] RDMA/i40iw: Remove the query_pkey callback Date: Tue, 14 Jul 2020 21:34:13 +0300 Message-Id: <20200714183414.61069-7-kamalheib1@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200714183414.61069-1-kamalheib1@gmail.com> References: <20200714183414.61069-1-kamalheib1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Now that the query_pkey() isn't mandatory by the RDMA core for iwarp providers, this callback can be removed. Signed-off-by: Kamal Heib --- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index f9ef3ac2f4cd..6957e4f3404b 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -101,7 +101,6 @@ static int i40iw_query_port(struct ib_device *ibdev, props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | IB_PORT_VENDOR_CLASS_SUP | IB_PORT_BOOT_MGMT_SUP; props->gid_tbl_len = 1; - props->pkey_tbl_len = 1; props->active_width = IB_WIDTH_4X; props->active_speed = 1; props->max_msg_sz = I40IW_MAX_OUTBOUND_MESSAGE_SIZE; @@ -2459,7 +2458,6 @@ static int i40iw_port_immutable(struct ib_device *ibdev, u8 port_num, if (err) return err; - immutable->pkey_tbl_len = attr.pkey_tbl_len; immutable->gid_tbl_len = attr.gid_tbl_len; return 0; @@ -2615,22 +2613,6 @@ static int i40iw_query_gid(struct ib_device *ibdev, return 0; } -/** - * i40iw_query_pkey - Query partition key - * @ibdev: device pointer from stack - * @port: port number - * @index: index of pkey - * @pkey: pointer to store the pkey - */ -static int i40iw_query_pkey(struct ib_device *ibdev, - u8 port, - u16 index, - u16 *pkey) -{ - *pkey = 0; - return 0; -} - static const struct ib_device_ops i40iw_dev_ops = { .owner = THIS_MODULE, .driver_id = RDMA_DRIVER_I40IW, @@ -2670,7 +2652,6 @@ static const struct ib_device_ops i40iw_dev_ops = { .post_send = i40iw_post_send, .query_device = i40iw_query_device, .query_gid = i40iw_query_gid, - .query_pkey = i40iw_query_pkey, .query_port = i40iw_query_port, .query_qp = i40iw_query_qp, .reg_user_mr = i40iw_reg_user_mr, -- 2.25.4