Re: [PATCH 1/3] rdma_cm: Add support for a new RDMA_PS_LUSTRE Lustre port space

2010-01-21 Thread Or Gerlitz
sebastien dugue wrote: OK, then going with the TCP port space, what we need in OpenSM is a combination of service id (TCP) _and_ TCP port _and_ target GUID. I believe that you can have a 'lustre' keyword in opensm qos parser which stands for the combination of tcp port space + lustre tcp port

Re: [PATCH 1/3] rdma_cm: Add support for a new RDMA_PS_LUSTRE Lustre port space

2010-01-21 Thread sebastien dugue
On Thu, 21 Jan 2010 11:12:08 +0200 Or Gerlitz ogerl...@voltaire.com wrote: sebastien dugue wrote: OK, then going with the TCP port space, what we need in OpenSM is a combination of service id (TCP) _and_ TCP port _and_ target GUID. I believe that you can have a 'lustre' keyword in opensm

ibv_asyncwatch and buffering

2010-01-21 Thread Håkon Bugge
Hi, It seems like ibv_asyncwatch defaults to standard libc behavior wrt. to buffering. That is, if you pipe the output of ibv_asyncwatch, no output happens, as the stdout is redirected to a pipe and block buffering is used by default. One could a) use sprintf() and write() or b) force libc

Re: ibv_asyncwatch and buffering

2010-01-21 Thread Or Gerlitz
Håkon Bugge wrote: That would make ibv_asyncwatch more useful in scripted environments patch? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] libibverbs: Force line-buffering in ibv_asyncwatch

2010-01-21 Thread Håkon Bugge
ibv_asyncwatch defaults to block-buffering when stdout is redirected to a file or pipe. This fix makes it more usable in scripted environments. Signed-off-by: Hakon Bugge haakon.bu...@sun.com --- diff --git a/examples/asyncwatch.c b/examples/asyncwatch.c index e56b4dc..f9fe6ff 100644 ---

Re: [PATCH] libibverbs: Force line-buffering in ibv_asyncwatch

2010-01-21 Thread Håkon Bugge
I guess it depends. ibverbs has other non-POSIX compliant libc functions - so I am not sure there is a POSIX policy enforcement. If I understand correctly, the charter of OFED is to produce a Linux distribution (and also a Windows distro). setlinebuf() is pretty intuitive to understand,

Re: Problems using krping

2010-01-21 Thread Steve Wise
It appears the MLX4 driver does not support kernel mode memory regions. You'll have to use dma mrs or fast_reg mrs with that device. Steve. lihaidong wrote: Mr.Wise: When using mr mode as the memory registration method, krping failed to get memory region using ib_reg_phys_mr().Could

[PATCH] opensm/osm_sa.{c,h}: osm_sa_db_file_dump() return values

2010-01-21 Thread Yevgeny Kliteynik
Since osm_sa_db_file_dump() doesn't have to actually dump SA DB, reflecting this in the function return values. Function returns 0 if the SA DB was actually dumped, 0 if there was no need to dump the SA DB and 0 if some error occurred. Signed-off-by: Yevgeny Kliteynik klit...@dev.mellanox.co.il

[PATCH] opensm/osmeventplugin: added couple of events to monitor SM

2010-01-21 Thread Yevgeny Kliteynik
Hi Sasha, I've added a couple of new events that allow event plug-in to see what SM is doing, when it is sweeping and when it updates dump files: OSM_EVENT_ID_L_SWEEP_STARTED, OSM_EVENT_ID_L_SWEEP_DONE, OSM_EVENT_ID_H_SWEEP_STARTED, OSM_EVENT_ID_H_SWEEP_DONE, OSM_EVENT_ID_REROUTE_DONE,

Re: [PATCH] tests/subnet_discover: discover test utility

2010-01-21 Thread Ira Weiny
Hey Sasha, I am finally getting back to this... Sorry. On Wed, 13 Jan 2010 15:11:44 -0500 Hal Rosenstock hal.rosenst...@gmail.com wrote: Hi Sasha, On Tue, Jan 12, 2010 at 4:31 AM, Sasha Khapyorsky sas...@voltaire.com wrote: Hi Hal, On 08:56 Mon 11 Jan , Hal Rosenstock wrote:

[PATCH] opensm: Add a name to IB subnet and include it in syslog messages

2010-01-21 Thread Arputham Benjamin
Added a text based name to an IB subnet to help user in identifying an IB subnet or understanding its function in a multi-fabric IB cluster. For example, in a dual-fabric (or dual-rail) IB cluster, one subnet could be named mpi and the other subnet could be named storage. Summary of changes: o