[ofa-general] [ibsim][PATCH] Socket name can be forced by exporting IBSIM_SOCKNAME before starting ibsim and/or preloading umad2sim so multiple simulator can run on the same system at the same time

Nicolas Morey Chaisemartin nicolas.morey-chaisemartin at ext.bull.net
Thu Feb 5 06:34:24 PST 2009


As we do a lot of routing tests with ibsim we had the need to be able to launch multiple simulator on the same system.
With this patch, ibsim (and umad2sim) will try to read the socket basename using a getenv("IBSIM_SOCKNAME") which makes it possible.
If IBSIM_SOCKNAME is not set, SIM_BASENAME is still used.


Signed-off-by: Nicolas Morey-Chaisemartin <nicolas.morey-chaisemartin at ext.bull.net>
---
  ibsim/ibsim.c         |   10 ++++++++--
  umad2sim/sim_client.c |   14 +++++++++-----
  2 files changed, 17 insertions(+), 7 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 51201d225702489862648d1380d84c1570c11c71.diff
Type: text/x-patch
Size: 3286 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20090205/c9852f49/attachment.bin>


More information about the general mailing list