Re: [ANNOUNCE] libibverbs 1.1.7 is released

2013-05-29 Thread Or Gerlitz
On 29/05/2013 02:10, Roland Dreier wrote: libibverbs is a library that allows programs to use RDMA verbs for direct access to RDMA (currently InfiniBand and iWARP) hardware from userspace. Hey, so there's RoCE out there too... The new stable release, 1.1.7, is available from libmlx4

[regression] Re: [RFC][PATCH] mm: Fix RLIMIT_MEMLOCK

2013-05-29 Thread Ingo Molnar
* Christoph Lameter c...@linux.com wrote: On Mon, 27 May 2013, Peter Zijlstra wrote: Before your patch pinned was included in locked and thus RLIMIT_MEMLOCK had a single resource counter. After your patch RLIMIT_MEMLOCK is applied separately to both -- more or less. Before the patch

Re: Status of ummunot branch?

2013-05-29 Thread Or Gerlitz
On Tue, May 28, 2013 at 8:51 PM, Jeff Squyres (jsquyres) jsquy...@cisco.com wrote: I ask because, as an MPI guy, I would *love* to see this stuff integrated into the kernel and libibverbs. Hi Jeff, Have you looked on ODP? see

[PATCH v5 00/28] rdma/cm: Add support for native IB addressing

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com This patch series adds support for native IB addressing to the rdma cm. The full patch series is available from: git://git.openfabrics.org/~shefty/rdma-dev.git for-next The rdma cm is the only widely usable interface for establishing communication

[PATCH v5 01/28] rdma/cm: define native IB address

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Define AF_IB and sockaddr_ib to allow the rdma_cm to use native IB addressing. Signed-off-by: Sean Hefty sean.he...@intel.com --- include/linux/socket.h |2 + include/rdma/ib.h | 89 2 files

[PATCH v5 02/28] rdma/cm: Allow enabling reuseaddr in any state

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com The rdma_cm only allows setting reuseaddr if the corresponding rdma_cm_id is in the idle state. Allow setting this value in other states. This brings the behavior more inline with sockets. Signed-off-by: Sean Hefty sean.he...@intel.com ---

[PATCH v5 03/28] rdma/cm: Include AF_IB in loopback and any address checks

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Enhance checks for loopback and any address to support AF_IB in addition to AF_INET and AF_INT6. This will allow future patches to use AF_IB when binding and resolving addresses. Signed-off-by: Sean Hefty sean.he...@intel.com ---

[PATCH v5 05/28] rdma/cm: Update port reservation to support AF_IB

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com The AF_IB uses a 64-bit service id (SID), which the user can control through the use of a mask. The rdma_cm will assign values to the unmasked portions of the SID based on the selected port space and port number. Because the IB spec divides the SID range

[PATCH v5 04/28] ib/addr: Add AF_IB support to ip_addr_size

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Add support for AF_IB to ip_addr_size, and rename the function to account for the change. Give the compiler more control over whether the call should be inline or not by moving the definition into the .c file, removing the static inline, and exporting it.

[PATCH v5 07/28] rdma/cm: Do not modify sa_family when setting loopback address

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com cma_resolve_loopback is called after an rdma_cm_id has been bound to a specific sa_family and port. Once the source sa_family for the id has been set, do not modify it. Only the actual IP address portion of the source address needs to be set. As part of

[PATCH v5 06/28] rdma/cm: Allow user to specify AF_IB when binding

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Modify rdma_bind_addr to allow the user to specify AF_IB when binding to a device. AF_IB indicates that the user is not mapping an IP address to the native IB addressing. (The mapping may have already been done, or is not needed.) Signed-off-by: Sean Hefty

[PATCH v5 11/28] rdma/cm: Add support for AF_IB to rdma_resolve_addr

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Allow the user to specify the remote address using AF_IB format. When AF_IB is used, the remote address simply needs to be recorded, and no resolution using ARP is done. The local address may still need to be matched with a local IB device. Signed-off-by:

[PATCH v5 10/28] rdma/cm: Verify that source and dest sa_family are the same

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/cma.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index c6cc3a4..67aaadc 100644 ---

[PATCH v5 09/28] rdma/cm: Restrict AF_IB loopback to binding to IB devices only

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com If a user specifies AF_IB as the source address for a loopback connection, limit the resolution to IB devices only. Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/cma.c | 28 1 files changed, 20

[PATCH v5 27/28] rdma/ucm: Allow user space to specify AF_IB when joining multicast

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Allow user space applications to join multicast groups using MGIDs directly. MGIDs may be passed using AF_IB addresses. Since the current multicast join command only supports addresses as large as sockaddr_in6, define a new structure for joining addresses

[PATCH v5 13/28] rdma/cm: Add support for AF_IB to cma_get_service_id

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com cma_get_service_id forms the service ID based on the port space and port number of the rdma_cm_id. Extend the call to support AF_IB, which contains the service ID directly. This will be needed to support any arbitrary SID. Signed-off-by: Sean Hefty

[PATCH v5 08/28] rdma/cm: Add helper functions to return id address information

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Provide inline helpers to extract source and destination address data from the rdma_cm_id. Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/cma.c | 138 + 1 files changed, 71 insertions(+),

[PATCH v5 28/28] rdma/cm: Export AF_IB statistics

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Report AF_IB source and destination addresses through netlink interface. Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/cma.c | 37 ++--- 1 files changed, 10 insertions(+), 27 deletions(-) diff

[PATCH v5 26/28] rdma/ucm: Allow user space to pass AF_IB into resolve

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Allow user space applications to call resolve_addr using AF_IB. To support sockaddr_ib, we need to define a new structure capable of handling the larger address size. Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/ucma.c |

[PATCH v5 25/28] rdma/ucm: Allow user space to bind to AF_IB

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Support user space binding to addresses using AF_IB. Since sockaddr_ib is larger than sockaddr_in6, we need to define a larger structure when binding using AF_IB. This time we use sockaddr_storage to cover future cases. Signed-off-by: Sean Hefty

[PATCH v5 18/28] rdma/cm: Only listen on IB devices when using AF_IB

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com If an rdma_cm_id is bound to AF_IB, with a wild card address, only listen on IB devices. Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/cma.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git

[PATCH v5 19/28] rdma/ucm: Support querying for AF_IB addresses

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com The sockaddr structure for AF_IB is larger than sockaddr_in6. The rdma cm user space ABI uses the latter to exchange address information between user space and the kernel. To support querying for larger addresses, define a new query command that exchanges

[PATCH v5 20/28] ib/sa: Export function to pack a path record into wire format

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Allow converting from struct ib_sa_path_rec to the IB defined SA path record wire format. This will be used to report path data from the rdma cm into user space. Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/sa_query.c |6

[PATCH v5 21/28] rdma/ucm: Support querying when IB paths are not reversible

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com The current query_route call can return up to two path records. The assumption being that one is the primary path, with optional support for an alternate path. In both cases, the paths are assumed to be reversible and are used to send CM MADs. With the

[PATCH v5 22/28] rdma/cm: Export cma_get_service_id

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Allow the rdma_ucm to query the IB service ID formed or allocated by the rdma_cm by exporting the cma_get_service_id functionality. Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/cma.c | 13 +++-- include/rdma/rdma_cm.h

[PATCH v5 23/28] rdma/ucm: Add ability to query GID addresses

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com Part of address resolution is mapping IP addresses to IB GIDs. With the changes to support querying larger addresses and more path records, also provide a way to query IB GIDs after resolution completes. Signed-off-by: Sean Hefty sean.he...@intel.com ---

[PATCH v5 16/28] rdma/cm: Expose private data when using AF_IB

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com If the source or destination address is AF_IB, then do not reserve a portion of the private data in the IB CM REQ or SIDR REQ messages for the cma header. Instead, all private data should be exported to the user. When AF_IB is used, the rdma cm does not

[PATCH v5 14/28] rdma/cm: Remove unused SDP related code

2013-05-29 Thread sean . hefty
From: Sean Hefty sean.he...@intel.com The SDP protocol was never merged upstream. Remove unused SDP related code from the RDMA CM. Signed-off-by: Sean Hefty sean.he...@intel.com --- drivers/infiniband/core/cma.c | 176 +++- 1 files changed, 31

[PATCH] osm_ucast_dfsssp.c: Fix memory leak in dfsssp_do_dijkstra_routing

2013-05-29 Thread Hal Rosenstock
From 5c06cdf5029ca79a8c2e684a23b1b7e89a93c3a6 Mon Sep 17 00:00:00 2001 From: Dan Ben Yosef da...@mellanox.com Date: Wed, 29 May 2013 15:41:41 +0300 Subject: [PATCH] osm_ucast_dfsssp.c: Fix memory leak in dfsssp_do_dijkstra_routing Variable sw_list going out of scope leaks the storage it points

[RFC][PATCH] mm: Fix RLIMIT_MEMLOCK

2013-05-29 Thread KOSAKI Motohiro
Hi I'm unhappy you guys uses offensive word so much. Please cool down all you guys. :-/ In fact, _BOTH_ the behavior before and after Cristoph's patch doesn't have cleaner semantics. And PeterZ proposed make new cleaner one rather than revert. No need to hassle. I'm 100% sure -rt people need

Re: Status of ummunot branch?

2013-05-29 Thread Jeff Squyres (jsquyres)
On May 29, 2013, at 4:53 AM, Or Gerlitz or.gerl...@gmail.com wrote: Have you looked on ODP? see https://www.openfabrics.org/resources/document-downloads/presentations/doc_download/568-on-demand-paging-for-user-space-networking.html Is this upstream? Has this been run by the MPI implementor

[PATCH 2/2] OpenSM: DFSSSP - workaround for better VL balancing

2013-05-29 Thread Jens Domke
Currently, DFSSSP maps the src/dest paths statically to certain VLs. Especially for deadlock-free topologies this can result in an unfair balancing. Some VLs within one link might be overused, which results in slower bandwidth for some src/dest pairs. The fix changes the VL assignment in two

Re: Status of ummunot branch?

2013-05-29 Thread Or Gerlitz
On 30/05/2013 01:56, Jeff Squyres (jsquyres) wrote: On May 29, 2013, at 4:53 AM, Or Gerlitz or.gerl...@gmail.com wrote: Have you looked on ODP? see https://www.openfabrics.org/resources/document-downloads/presentations/doc_download/568-on-demand-paging-for-user-space-networking.html Is this