Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2023857imm; Thu, 7 Jun 2018 04:18:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI3nvBSxPQc9+lAbe9HbRUyJAHFc4qKF+AkCiW2EbLs3FAwGyhKo6YU8ndaAupyRmferO34 X-Received: by 2002:a63:5ec4:: with SMTP id s187-v6mr1225202pgb.72.1528370299273; Thu, 07 Jun 2018 04:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528370299; cv=none; d=google.com; s=arc-20160816; b=iH2czev4zTZQ9Qf3R6jvQatIy2sFR8qfZ/U1pO413Zj3EzO+yaNAhwKtJ0uMtjEzjy gqwBvXChofhpQd1f7KkXdF/EfoH/BlK9dbxnEuxj5dATowf3XHZn6dUnkRJe/xP8JwJU kskOA4QMT6fTR0/4p3u/6CRQmzFCBaB2KJkvy/DZ7T5uAROL9TW5IDxIZoHSkynKt4EH 6puFga498sW3huUUydmuNc9tXMqoTy4wiMMytc5od67tSpvGGNJDYlsTg3OX6Zn3znnQ /Hml3VapzI2l4U/YA4XUyMjg1KsL3RI2GRo+nz5CuY9qHeN9XRyGaTu5vQT8Jz/i1Boz 9nhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:arc-authentication-results; bh=dfyz2gqra2Fj2UIzJqJoTeNKwITu/FfO7R6AS9JWE3U=; b=L7/BylgNQ862NVzudn/qVAxRfOYLhqwQopr+R7Th2Qcn7mGVDmeiVQfMaruJwGRAMQ tC+3TTFGCfahcKNpUKPZBlJly0yCeQ6wIuC1ln9CHw75y7+JXqQ98fub/tmWwyyhyZJv Od0we30plsScfRW8VP+mLthKUCAzHZUzC17tWDk55mHp8gDtYhwEhDepmT+cy7WNXVgG 6KbY0B4HcYqPFuehUX8hejeag7TfSJ98oEVZXHxN1Gmwf69T/8oOc2dIh+1Pp16aDc87 309wdSqttoqAT/n0DtypLdIgXiPzMB2HwfeVEz/Sc3ZRjm/1M/l355egevH1h96MDGZu dqmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=miiSMOfp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13-v6si26699214ple.274.2018.06.07.04.18.04; Thu, 07 Jun 2018 04:18:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=miiSMOfp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753394AbeFGLPi (ORCPT + 99 others); Thu, 7 Jun 2018 07:15:38 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:35184 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752972AbeFGLPh (ORCPT ); Thu, 7 Jun 2018 07:15:37 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w57BBPVW100419; Thu, 7 Jun 2018 11:15:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=dfyz2gqra2Fj2UIzJqJoTeNKwITu/FfO7R6AS9JWE3U=; b=miiSMOfp4AZs9um3dkTpnFXIi6w4ZbybpuPJ1HM2BTLQzw7jNbsWOuYE6ey1TFFPgtk+ 30B8AU69K6rA3GSjhS1Vz7JOuOsal71OAfD2pvePkP7PuSxXkadJ3ufOyQUFP+9WEpmX nCqQHelrG/G3ACtb88EqbY9nPmjSz6JTcg2zeSUtWHH+CmALpbKecU6S2a0AJtlrZMfB W/bhtQfNNKjApUAmqeIyQj9OiFe/pnuhWZnrh4dpfqcokNzAzwgUhszitAGDuBUe/69+ zMWAdY2g3kuZN4EPxVrZYxAriyKRjtMo3klgVGlMafBGzBkwusCfPKytIfHHh2aEpPpn Nw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2jbvyp8h7v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 07 Jun 2018 11:15:09 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w57BF6Kc024410 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 7 Jun 2018 11:15:07 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w57BF3mf015899; Thu, 7 Jun 2018 11:15:03 GMT Received: from lab02.no.oracle.com (/10.172.144.56) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 07 Jun 2018 04:14:58 -0700 From: Hans Westgaard Ry To: Doug Ledford , Jason Gunthorpe , Hakon Bugge , Parav Pandit , Jack Morgenstein , Pravin Shedge , Matthew Wilcox , Andrew Morton , Jeff Layton , Wei Wang , Chris Mi , Eric Biggers , Rasmus Villemoes , Mel Gorman , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] IB:mad Use ID allocator routines to allocate agent number Date: Thu, 7 Jun 2018 13:14:33 +0200 Message-Id: <20180607111435.17538-1-hans.westgaard.ry@oracle.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180529073808.27735-1-hans.westgaard.ry@oracle.com> References: <20180529073808.27735-1-hans.westgaard.ry@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8916 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=497 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806070132 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v3: - Removed Oracle internal bug number information v2: - Implement ida_get_simple_cyclic and use it when allocating ib_mad_client_ids. Hans Westgaard Ry (2): idr: Add ida_simple_get_cyclic IB/mad: Use ID allocator routines to allocate agent number drivers/infiniband/core/mad.c | 24 +++++++++++++--- include/linux/idr.h | 8 ++++-- lib/idr.c | 66 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+), 6 deletions(-) -- 2.14.3