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=-9.8 required=3.0 tests=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,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 28396C433DF for ; Mon, 6 Jul 2020 09:11:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 07CD52073E for ; Mon, 6 Jul 2020 09:11:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pZmeZc0P" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728628AbgGFJLf (ORCPT ); Mon, 6 Jul 2020 05:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728024AbgGFJLf (ORCPT ); Mon, 6 Jul 2020 05:11:35 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9CBAC061794 for ; Mon, 6 Jul 2020 02:11:34 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id b6so39949901wrs.11 for ; Mon, 06 Jul 2020 02:11:34 -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=K6mLL7tLM934/zbxauAezYq+UQ9iy2rbr+FRjTdUcOU=; b=pZmeZc0PTnkq5+3cFfnKUf2uwVlEbiFH7zk9f9BM1yYD9OzAsTS1qZmeetK0fKOJP0 Mx5i5ZyOK8ftkPv9nr3/yvlI2n6jGCVsqSqVeVRVTXqrdQSJdfjVKqj2nlyy1Dc8VZJA 6nYoa9rMOWYAVPziUJg3SUzhI3D7X6iC2UyLXnV894eEXS81m1TRq+UZkbu7ozE74+u9 xrwlaliaNjp3VpWnCaXdXvfWBQdvoIoQtNlFYBYoejJ9W1cYsK3m+g7Uhf/KBW4cBLrL T/dX+GKe81qFPEizCPPtGPjZnd4UPpTIjZndEz5tUREQQHKtf1YJE1XY0gZTGb5AOCWr 4Mlg== 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=K6mLL7tLM934/zbxauAezYq+UQ9iy2rbr+FRjTdUcOU=; b=qViw8e96F9U64jP3wMU7QEqB2Whip1Ifdk/sE/tDZELhSag9yz2sQCWOXELH242sjl jG85hDL3lSUCmo5Cf3d8PH9ir+uUfVzg4Eq0Ngq8pchQwCc+1XTQGiJ/ZeM4eepWktPh tHbun63IVa/d5Nt3e+qJVZgP+T++vlRsZGSbe/HwqVDNcbGGa5P6vsfXj7KyRcVbYEiW 1BN3zPUQ/4RN5qYeDoXn69na809G+5wJt5aD+OkVJoz7RhPfBosGJK13Hog18+9KY5hv cmD9mluowlqHf8VyQUIPIIY3zpXBjiluJaYvgyp2MlRsLNSrBNDMzlCRf2wfbek0Rfjl vcRg== X-Gm-Message-State: AOAM532JPwmecnOfkgXqQTG0yU8FnjRraQ0yJW7cAvb+5vgYdIgcFiWq WRwGoOcnYy7/Z/k7BRZW1aIcb+ZEIZE= X-Google-Smtp-Source: ABdhPJwZ52iHwO/d4O79Io+QG7XfCHeaB8KeJWCiT7O2bAcXN6ofcQw7Hn8mFMlOmmSbWYKWD5sXkw== X-Received: by 2002:adf:f3cd:: with SMTP id g13mr45472555wrp.45.1594026693316; Mon, 06 Jul 2020 02:11:33 -0700 (PDT) Received: from kheib-workstation.redhat.com ([37.142.6.100]) by smtp.gmail.com with ESMTPSA id j4sm18826867wrp.51.2020.07.06.02.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 02:11:32 -0700 (PDT) From: Kamal Heib To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe , Doug Ledford , Kamal Heib , Shiraz Saleem Subject: [PATCH for-rc v1 3/4] RDMA/i40iw: Set max_pkeys attribute Date: Mon, 6 Jul 2020 12:11:18 +0300 Message-Id: <20200706091119.367697-4-kamalheib1@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200706091119.367697-1-kamalheib1@gmail.com> References: <20200706091119.367697-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 Make sure to set the max_pkeys attribute to indicate the maximum number of partitions supported by the i40iw device. Fixes: d37498417947 ("i40iw: add files for iwarp interface") Signed-off-by: Kamal Heib Cc: Shiraz Saleem --- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index 19af29a48c55..ef624fa5f07b 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -84,6 +84,7 @@ static int i40iw_query_device(struct ib_device *ibdev, props->max_qp_init_rd_atom = props->max_qp_rd_atom; props->atomic_cap = IB_ATOMIC_NONE; props->max_fast_reg_page_list_len = I40IW_MAX_PAGES_PER_FMR; + props->max_pkeys = 1; return 0; } -- 2.25.4