2016-02-08  Cyrille Verrier  <cyrille.verrier@fabriscale.com>

	sim_cmd.c: PerformanceSet handling for enhanced switch port 0
	Setting the perf counters of the port 0 is only allowed when
	the node is a switch with an enhanced port 0

	----- test valid requests ------

	sim> PerformanceSet "S-0002c90200405158"[0] PortCountersExtended.PortXmitData=123456
	S-0002c90200405158[0] PortCountersExtended.PortXmitData has been set to 123456

	sim> PerformanceSet "H-0002c90300ee1f20"[1] PortCountersExtended.PortXmitData=123456
	H-0002c90300ee1f20[1] PortCountersExtended.PortXmitData has been set to 123456

	------ test invalid requests ------
	sim> PerformanceSet "S-0002c90200475358"[0] PortCountersExtended.PortXmitData=123456

	sim> PerformanceSet "H-0002c90300ee1f20"[0] PortCountersExtended.PortXmitData=123456

	sim> PerformanceSet "H-0002c90300ee1f20"[3] PortCountersExtended.PortXmitData=123456

	sim> PerformanceSet "S-0002c90200405158"[123] PortCountersExtended.PortXmitData=123456

	sim> PerformanceSet "S-0002c90200405158"[-1] PortCountersExtended.PortXmitData=123456

2016-02-08  Cyrille Verrier  <cyrille.verrier@fabriscale.com>

	sim_mad.c: Fix incorrectly updated port counters in pc_updated()
	When the IB packet gets out of the source port,
	the Xmit fields of the source port are now updated.

2016-02-08  Cyrille Verrier  <cyrille.verrier@fabriscale.com>

	sim_cmd.c: Invalidate PerformanceSet commands with no port number
	Syntax: sim> PerformanceSet "nodeid"[port] [attribute].[field]=[value]

	-- testing valid commands ---
	sim> PerformanceSet "S-0002c90200405158"[4] PortCountersExtended.PortXmitData=123456
	S-0002c90200405158[4] PortCountersExtended.PortXmitData has been set to 123456

2016-02-05  Cyrille Verrier  <cyrille.verrier@fabriscale.com>

	sim_cmd.c: Fix parsing of port number in PerformanceSet command
	Syntax: sim> PerformanceSet "nodeid"[port] [attribute].[field]=[value]

	-- testing valid commands ---
	sim> PerformanceSet "S-0002c90200405158"[4] PortCountersExtended.PortXmitData=123456
	S-0002c90200405158[4] PortCountersExtended.PortXmitData has been set to 123456

	sim> PerformanceSet      "S-0002c90200405158"[4]       PortCountersExtended.PortXmitData   =   123456
	S-0002c90200405158[4] PortCountersExtended.PortXmitData has been set to 123456

2016-02-05  Cyrille Verrier  <cyrille.verrier@fabriscale.com>

	Add .gitignore file: Ignore files generated by make

2015-04-22  Ilya Nelkenbaum  <ilyan@mellanox.com>

	ibsim/sim_cmd.c: Add ULLONG_MAX if not defined
	In old glibc versions (< 2.9.90) it is not defined

2014-03-18  Daniel Klein  <danielk@mellanox.com>

	ibsim: Allocate MFT according to number of switch ports
	Calculate number of port masks according to number of switch ports
	and allocate MFT accordingly

2014-01-30  Hal Rosenstock  <hal@mellanox.com>

	ibsim/ibsim.c: Bump version to 0.6

2013-06-25  Al Chu  <chu11@llnl.gov>

	ibsim: Remove parse corner case with full ibnetdiscover output
	When feeding in ibnetdiscover full output (i.e. -f option), ibsim
	would not parse the lid and lmc of ports correctly.

2013-06-25  Hal Rosenstock  <hal@mellanox.com>

	sim_client.c: Set issm flag on connect when SIM_SET_ISSM set
	When the SIM_SET_ISSM environment variable is set, ibsim did not
	set the issm bit until after an ibsim connection was complete.  This
	allowed multiple SMs to actively run as the SM on the the same port.

	Slight rework of original patch from Al Chu.

2013-06-19  Al Chu  <chu11@llnl.gov>

	ibsim: Do not return allportselect for non-switches
	ibsim only supports allportselect (i.e. port 0xff) for switches
	but not HCAs.  However the allportselect flag would be returned
	for all PerfMgt classportinfo requests, leading to unexpected
	results when running some infiniband-diag tools against ibsim.

2013-06-05  Al Chu  <chu11@llnl.gov>

	Output error on bad input to PerformanceSet

2013-06-05  Al Chu  <chu11@llnl.gov>

	Fix PerformanceSet parsing corner case
	Parse of attribute did not properly remove whitespace before it.  So

	PerformanceSet "H-0002c90300325280" PortCounters.SymbolErrorCounter=3

	would work but

	PerformanceSet "H-0002c90300325280"  PortCounters.SymbolErrorCounter=3\

	would not.

2012-10-25  Jon Stanley  <jonstanley@gmail.com>

	ibsim/sim_cmd: Fix compile errors
	In the previous commit, lines which seemed not destined for
	upstream prevented sim_cmd from building. Remove them.

2012-10-11  Huang, Perry  <huang32@llnl.gov>

	ibsim/sim_cmd: Add command to set perf. counters.
	This patch requires:
		[PATCH 1/2] ibsim/sim.h: Add support for optional performance attributes.
		[PATCH 2/2] ibsim/sim_mad.c: Add read/reset functions for optional performance attributes.

	Use:
	PerformanceSet "nodeid"[port] [attribute].[field]=[value]
	eg.
	sim> PerformanceSet "S-0002c9020040fec8"[4] PortCounters.PortXmitPkts=125512
	PortCounters.PortXmitPkts has been set to 125512

	Add PerformanceSet command to enable setting performance counters (both required and optional fields).

2012-10-11  Huang, Perry  <huang32@llnl.gov>

	ibsim/sim_mad.c: Add read/reset functions for optional performance attributes.
	Add functions to read/reset optional performance counters detailed in IB Arch Release 1.2.1 16.1.4.[1-8].

	ibsim/sim.h: Add support for optional performance attributes.
	Add support for optional performance counters detailed in IB Arch Release 1.2.1 16.1.4.[1-8]. Does not include congestion attributes.

2012-10-11  Hal Rosenstock  <hal@dev.mellanox.co.il>

	ibsim/sim_cmd.c: Allow error command on attributes for switch port 0

	ibsim/sim_cmd.c: Fix help for error command
	PortInfo is attribute ID 0x15 (21)

2012-10-11  Huang, Parry W  <huang32@llnl.gov>

	ibsim/sim_cmd.c: Fixed help output for dump command
	In dump_help, fixed help output of the dump command to correspond with the rest of the response.

	ibsim/ibsim.c: Fixed bug regarding undefined commands
	In sim_cmd_file and sim_run_console, fixed bug regarding a new line being kept at the end of the input when an unknown command is processed from console or from file.

2012-10-11  Albert Chu  <chu11@llnl.gov>

	ibsim: Fix typo in help

2011-02-28  Alex Netes  <alexne@voltaire.com>

	ibsim: fix double slash in include the path
	Fix INCS path not to contain double slash, as it cause to failure when
	creating RPM package on RedHat 6.

2010-04-10  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/subnet_discover: verbose node discovery printout
	Improve verbosity levels: with '-v' print nodes as they are discovered,
	more 'v' - more noise.

2010-01-23  Ira Weiny  <weiny2@llnl.gov>

	tests/subnet_discover: And I found the other reason (Re: Found one reason libibnetdisc is slower than subnet_discover)
	From: Ira Weiny <weiny2@llnl.gov>

	It looks like subnet_discover was actually allowing n+1 smps on the wire.  With this patch:

2009-12-28  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/subnet_discover: report unresponded transactions
	Report unresponded transactions (requests) in case of MAD failures.

	tests/subnet_discover.c: print useful information
	Print additional useful information about a subnet and discovery
	process: such as number of MADs used, number of hops reached, direct
	paths for nodes as it was discovered. Better error messages (in
	particular - don't print MAD content in error message when returned
	valid data from umad_recv() is only umad header).

2009-12-27  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/subnet_discover: --maxsmps (-n) option
	This implements the limitation of outstanding SMPs on a wire at any
	one time. --maxsmps=0 means - no limit.

2009-12-25  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/subnet_discover: add --help option
	Add --help command line option. Also cosmetic improvements.

	tests/subnet_discover: limit possible number of hops
	As pointed out by Ira there was no hops limitation. Adding this.

2009-12-20  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/query_many: simple utility to send many SMP queries
	This simple utility sends many SMP queries to specified DR path.

	tests/subnet_discover: discover test utility
	'subnet_discover' is simple test utility which implements "non-blocking"
	discovery method where mads are sending "in parallel" (unlike the
	current implementation of 'ibnetdiscover' and similar to how OpenSM
	does). For this a recently discovered node id value is encoded as lower
	16 bits of mad transaction id.

2009-09-19  Hal Rosenstock  <hnrose@comcast.net>

	ibsim/sim_cmd.c: Cosmetic change to error message

2009-09-18  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm.c: report error response status
	For join and leave tests report non zero response status for all methods
	(not only get as for 'rereg' test).

	tests/mcast_storm.c: support comments in gid file
	Support commented and empty lines in gid file. Verify gid string parsing
	status.

2009-09-17  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm: fix MGID command line parser
	Fix (actually improve) MGID command line parser - it will add default
	MGID prefix when not specified and will know IPv6 address format. For
	this MGID/GID parsing code is consolidated in parse_gid_str() function.

	tests/mcast_storm.c: fix mcmember parameters initialization
	For some MCMember parameters '0' is a valid value to use - so to
	differentiate this from initial "not requested" case initialize them
	as negative and update appropriately when values are provided using
	command line.

2009-09-15  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm.c: fix uninitialized variable use
	Fix uninitialized use of 'prefix' variable in gid file parser.

2009-09-09  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm.c: fix numeric GID parser
	Fix GID file parser for case when GIDs are provided in numeric form -
	0xNNNNNNNNNNNNNNNNNNNNNN or 0xNNNNNN:0xMMMMMM .

2009-07-27  sebastien dugue  <sebastien.dugue@bull.net>

	ibsim - Fix umad2sim build with glibc >= 2.10
	Hi Sasha,

	  Starting with glibc 2.10 scandir() was made POSIX compliant which changed
	the prototype if the comparison function from:

	  int (*compar) (const void *, const void *)

	to:

	  int (*compar) (const struct dirent **, const struct dirent **)

	  This patch detects glibc's version to use the correct prototype.

2009-05-21  Sasha Khapyorsky  <sashak@voltaire.com>

	mcast_storm.c: migrate to newer libibmad API
	Replace deprecated libibmad APIs by newer functions - prevent
	compilation warnings.

2009-05-01  Nicolas Morey-Chaisemartin  <nicolas.morey-chaisemartin@ext.bull.net>

	ibsim: Fixed custom release in SPEC file
	Removed a space which make rpmbuild fail when _dist and CUSTOM_RELEASE are set:
	error: line 15: Tag takes single token only: Release: ofed1.4.1 .fc11

	This is due to
	Release: %rel%{?dist}
	and %rel having a trailing whitespace.

2009-04-14  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: fix C99 non complaint types
	Replace C99 non complaint uint type by unsigned.

2009-04-14  Doron Shoham  <dorons@Voltaire.COM>

	ibsim: support xmitwait counters
	support xmitwait counters

2009-03-10  Hal Rosenstock  <hnrose@comcast.net>

	ibsim: Some cosmetic changes

2009-03-06  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm.c: fix gid file parser
	Now gid file parser will try to read data in ipv6 address format and if
	failed in numeric format - all known numeric options should work:

	0xXXXXXXXXXXXXXXXX (single guid)
	0xXXXXXXXXXXXXXXXX:0xXXXXXXXXXXXXXXXX
	0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

2009-03-06  Hal Rosenstock  <hnrose@comcast.net>

	ibsim/sim_mad.c: Better error handling in send_trap
	In send_trap, validate trap number prior to determining trap function
	Made trapnum parameter to send_trap unsigned
	Also, removed unneeded enum init of NO_NODE in NODE_TYPES

	ibsim/sim_mad.c: Eliminate a couple of unneeded blank lines

	ibsim/sim_net.c: Eliminate IsLEDInfoSupported PortInfo CapabilityMask bit
	rather than implement LEDInfo attribute support in the simulator

2009-03-02  Hal Rosenstock  <hnrose@comcast.net>

	ibsim: Handle sim_init_net errors better
	Use define rather than constant
	Also, cosmetic formatting and fixed some typos

	ibsim/sim.h: Better portinfo alignment in Port struct

2009-02-27  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: fix LocalPortNum in PortInfo response
	Fix LocalPortNum encoding in PortInfo responses.

2009-02-17  hnrose@comcast.net  <hnrose@comcast.net>

	ibsim/sim_client.c: Eliminate unneeded qp param from sim_init

	ibsim: Eliminate unneeded argument in sim_client_init

	ibsim/sim_client.c: In sim_client_init, return -1 on error

2009-02-17  David McMillen  <davem@systemfabricworks.com>

	umad2sim: Segmentation fault fix
	Turns out to be a problem with ibsim's poll() routine.  Here is a fix -
	trivial.

	Make poll() conform to official prototype, initialize saved fd array.

2009-02-14  hnrose@comcast.net  <hnrose@comcast.net>

	ibsim/sim_net.c: In new_node, fix nodetype in nodeinfo for router nodes
	>From 17350f5a17ec5ec821607aae7bf94a88b84d6e74 Mon Sep 17 00:00:00 2001
	From: Hal Rosenstock <hal.rosenstock@gmail.com>
	Date: Thu, 12 Feb 2009 10:57:20 -0500
	Subject: [PATCH] ibsim/sim_net.c: In new_node, fix nodetype in nodeinfo for router nodes

2009-02-09  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: fix port initial state
	Port initial state was ACTIVE in PortInfo template for connected ports.
	This prevented from OpenSM to make INIT -> ARMED -> ACTIVE PortInfo
	transition typical for a real fabric.

2009-02-07  Hal Rosenstock  <halr@obsidianresearch.com>

	ibsim: Change lid print format to unsigned
	Sasha,

	Patch to change lid print format to unsigned to be consistent elsewhere.

	-- Hal

	>From e3b752939a1d319c944c31e510fff386940e2af7 Mon Sep 17 00:00:00 2001
	From: Hal Rosenstock <hal.rosenstock@gmail.com>
	Date: Thu, 5 Feb 2009 13:58:23 -0500
	Subject: [PATCH] ibsim: Change lid prints to unsigned

2009-02-07  Hal Rosenstock  <halr@obsidianresearch.com>

	ibsim: Eliminate unused modified variable
	Sasha,

	Trivial patch to eliminate the unused 'modified' variable.

	-- Hal

	>From 512cad171f887df34d4b5b95defa905805547c39 Mon Sep 17 00:00:00 2001
	From: Hal Rosenstock <hal.rosenstock@gmail.com>
	Date: Thu, 5 Feb 2009 10:57:07 -0500
	Subject: [PATCH] ibsim: Eliminate unused modified variable

2009-02-05  Nicolas Morey Chaisemartin  <nicolas.morey-chaisemartin@ext.bull.net>

	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
	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.

2009-02-03  Hal Rosenstock  <halr@obsidianresearch.com>

	ibsim/sim_mad.c: Add sim support for PerfMgt ClassPortInfo
	Sasha,

	Attached is v2 of a patch to add simulator support for PerfMgt ClassPortInfo
	(subsequent to previous libibmad patch).

	-- Hal

	>From 79ebf4d40dabe6a4a3553ab88a338c3539672d76 Mon Sep 17 00:00:00 2001
	From: Hal Rosenstock <hal.rosenstock@gmail.com>
	Date: Mon, 2 Feb 2009 10:53:41 -0500
	Subject: [PATCH] ibsim/sim_mad.c: Add sim support for PerfMgt ClassPortInfo

2009-02-02  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim/sim_cmd.c: fix printf format
	Fix comment printing - use a real format.

	ibsim: remove libibcommon dependencies
	Remove dependencies from libibcommon which was removed from management
	tree.

2008-12-19  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm: add mcmember parameters
	It is possible to specify via command various mcmember parameters which
	will be used in tests.

2008-12-12  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm: code consolidation
	Code consolidation - joins, leave and rereg tests.

2008-12-07  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: version 0.5

2008-12-04  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm: various improvements
	- unify send_*() methods
	- make run_rereg_test() sensitive to mgid definition (not hardcoded
	  ipv4)
	- unify log prints with __func__ macros

	tests/mcast_storm: make 'leave' test
	Make 'leave' test - it will send a lot of MCM leave requests.

	tests/mcast_storm: 'joins' test sends a lot of requests
	Now 'joins' test is able to send a lot of MCM join requests - it will
	try to join each port to each MCgroup.

	tests/mcast_storm: use as default guid of self port
	When port guid is not specified (via -G option or with guid list file)
	use as default guid of the port where mcast_storm is running.

	tests/mcast_storm: fix MGID command line value parsing
	Fix MGID command line value (passed with -M option) parsing.

2008-12-03  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm: fix return value of make_gids_list()
	make_gids_list() should return number of generated gids and not just 0.

2008-12-01  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm: add yet trivial single join test
	Add yet trivial single join test 'joins'.

	tests/mcast_storm: Add -G, -M and -I options
	Add -G (port guid), -M (MGID) and -I (increment) options. Unify
	guid/mgid parser. Create incremental GID generator. Add tester methods
	framework.

	tests/mcast_storm: add command line processor
	Add command line processor (run ./mcast_stor --help - to see an usage).
	Unify test command methods and other consolidations and unifications.

	tests/mcast_storm: various improvements
	- consolidate send/recv code as send_req() and recv_res()
	- build_mcm_rec() gets join_state as parameter
	- function for MC group creation - build_mcm_create_rec()
	- fail with appropriate error message when SM is not present

	tests/mcast_storm: consolidate parameters
	Consolidate libibumad and libibmad related parameters into single
	struct addr_data.

	tests/mcast_storm: fix uninitialized subnet prefix
	For port GID generation uninitialized subnet prefix was used. Fix this -
	define as default subnet prefix.

	ibsim: make some stuff static
	Make locally used variables static.

2008-11-23  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: drop mad when attr method failed
	When attribute method failed (with negative value), don't full the
	client with no answer, instead drop this MAD and simulate timeout.

2008-11-13  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: fix compilation warning
	Fixing warning

	ibsim.c:516: warning: ignoring return value of 'write', declared with
	attribute warn_unused_result

2008-11-01  Sasha Khapyorsky  <sashak@voltaire.com>

	Encode agent id in request transaction id.
	For requests agent id will be encoded as bits 32-47 into MAD transaction
	id (ibsim will use now higher bits (48-63) for client id encoding). So
	response's agent id will be decoded from MAD and not resolved by
	management class value. This is in order to simulate kernel's user_mad
	layer behavior.

	update Voltaire copyright dates

2008-10-02  Sasha Khapyorsky  <sashak@voltaire.com>

	umad2sim: cosmetic
	Cosmetic change - kill few empty lines.

2008-09-19  Vincent Ficet  <jean-vincent.ficet@bull.net>

	ibsim: handle EAGAIN error
	Hello Sasha,

	Following the issue I raised yesterday ([ofa-general] ibsim:
	sim_read_pkt: write failed: Resource temporarily unavailable - pkt
	dropped), I wrote a small patch that fixes the issue (in attachment).
	All my tests are now running fine with this patch. Please let me know if
	you have any comments ;-)

	Cheers,

	Vincent

2008-09-05  Hal Rosenstock  <halr@obsidianresearch.com>

	ibsim: Add support for vendor ID and system image GUID
	Adding support for vendor ID and system image GUID to ibsim

2008-09-03  Al Chu  <chu11@llnl.gov>

	ibsim: add ReLink command
	> On 16:01 Thu 28 Aug     , Al Chu wrote:
	> > Hey Sasha,
	> >
	> > This adds a "ReLink" command to ibsim.  If a link was previously
	> > unlinked, you can run "ReLink" to reconnect it to whatever it was
	> > connected to before.  It's easier than having to figure out what it was
	> > connected to previously and input both the local and remote ends under
	> > the "Link" command.
	> >
	> > The idea for this option came up when I was trying to simulate an entire
	> > cluster going down then going back up.  Scripting the cluster to go down
	> > was easy ("Unlink" all CAs), but scripting it to come back up was a
	> > little harder since I had to figure out all the other end ports to input
	> > into "Link".

2008-08-31  Al Chu  <chu11@llnl.gov>

	fix error message typo
	Probably due to a cut and paste.  Nothing fancy.

2008-08-19  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim/sim_cmd: consolidate flows
	Consolidate and simplify flow. Return back line printing on '#' command.

2008-08-19  Al Chu  <chu11@llnl.gov>

	ibsim: parse sim cmds via full name
	Parse sim commands via full and partial names, not just by first
	character. This is backward compatible implementation.

2008-08-07  Ira Weiny  <weiny2@llnl.gov>

	ibsim: Add per attribute drop error.

2008-07-26  Hal Rosenstock  <hal.rosenstock@gmail.com>

	ibsim/sim_mad.c: Cosmetic changes
	ibsim/sim_mad.c: Cosmetic changes

	Fix typo in IBWARN message
	Make attribute ID format consistent (in hex)
	Also, other cosmetic formatting change

2008-07-26  Sasha Khapyorsky  <sashak@voltaire.com>

	Merge branch 'master' of ssh://git.openfabrics.org/~sashak/scm/ibsim

2008-06-29  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: fix snprintf() usage
	snprintf() can return value which exceeds provided buffer size. Should be
	checked for this case.

	umad2sim: fix snprintf() usage
	Fix size parameter value.

2008-06-25  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/sim_mad.c: Fix some typos
	ibsim/sim_mad.c: Fix some typos

2008-06-24  Sasha Khapyorsky  <sashak@voltaire.com>

	support for short RMPP transactions
	Support for short (<= 256) RMPP transactions, MAD length is encoded in
	sim_request header.

2008-06-12  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/sim.h: Allow max ports based on 36 port switches
	ibsim/sim.h: Allow max ports based on 36 port switches

	ibsim: Remove some unused routines
	ibsim: Remove some unused routines

2008-06-09  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/TODO: Eliminate inet sockets from todo per previous README change
	ibsim/TODO: Eliminate inet sockets from todo per previous README change

2008-06-06  Sasha Khapyorsky  <sashak@voltaire.com>

	README: inet socket rediness

2008-06-06  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/README: Cosmetic commentary changes
	ibsim/README: Cosmetic commentary changes

	ibsim/ibsim.c: Cosmetic change to some debug messages
	ibsim/ibsim.c: Cosmetic change to some debug messages

	ibsim/sim_mad.c: Cosmetic change to some debug messages
	ibsim/sim_mad.c: Cosmetic change to some debug messages

2008-06-02  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/sim_cmd.c: Cosmetic changes to help
	ibsim/sim_cmd.c: Cosmetic changes to help

2008-05-28  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: don't fail on "unknown" options
	When options are parsed in ports line, strings like 'x=' could be part
	of node description in format printed by ibnetdiscover. So don't break
	parsing if option is unknown.

2008-05-12  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: fix nodeid size usages
	Fix nodeid size usages - verify for potential overflow.

2008-05-13  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/sim.h: Fix NodeDescription size
	ibsim/sim.h: Fix NodeDescription size so can have maximum size
	NodeDescription per IBA spec rather than truncating them

2008-05-12  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/README: Clarify point of attachment/SIM_HOST use
	Fix typo in original version of this patch
	Resend as got bounce on general list
	--
	ibsim/README: Clarify point of attachment/SIM_HOST use

2008-05-12  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: rename defport to default_port
	Rename defport and set_def() variables to default_port and
	set_default_port() respectively.

2008-05-12  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/README: Clarify point of attachment/SIM_HOST use
	ibsim/README: Clarify point of attachment/SIM_HOST use

	ibsim/ibsim.c: Fix usage display
	ibsim/ibsim.c: Fix usage display

2008-05-11  Hal Rosenstock  <hrosenstock@xsigo.com>

	ibsim/sim_net.c: Fix some typos
	ibsim/sim.net.c: Fix some typos

2008-03-10  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm: ib_gid_t to ibmad_gid_t rename
	Following recent change in infiniband/mad.h rename type ib_gid_t to
	ibmad_gid_t.

2008-03-02  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm: check fopen() return status

	tests/mcast_storm: fix length value passed to umad_send()
	Fix length value passed to umad_send() - it should be total umad length
	minus header size.

2008-03-01  Sasha Khapyorsky  <sashak@voltaire.com>

	Update License: field in spec files
	Update License: field to match the exact format given in
	http://fedoraproject.org/wiki/Packaging/LicensingGuidelines
	for a package available under a choice of GPL or BSD license.

2008-02-08  Sasha Khapyorsky  <sashak@voltaire.com>

	umad2sim/sim_client: force port's capmask IsSM bit set option
	If SIM_SET_ISSM environment variable is set sim_client will attempt to
	set port's capmask IsSM bit. It is helpful when previous SM client
	was killed or crashed, but don't disconnected yet.

	ibsim: reply timeout if peer client is unreachable

	ibsim: disconnect client when connection failed
	Disconnect clients if connection is refused. It is useful for the cases
	when client program crashed unexpectedly, killed by SIGKILL or so.

2008-02-08  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: drop port capmask IsSM bit when SM client is disconnected
	Drop port's capmask IsSM bit when SM client is disconnected.

	The current solution is not 100% technically correct, there could be
	more than one SM client connected via same port. For better solution
	we will need to maintain list of connected clients per port - TODO.

2008-02-08  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: remove out file from disconnect_client() parameter list
	Remove output file from disconnect_client() parameter list. This will
	let us possibility to reuse this function for emergency client
	disconnection when connection is gone. For ibsim console use wrapper
	do_disconnect_client() function with nice printouts.

	ibsim: fix do_cmd() prototype
	do_cmd() gets output file as second parameter. Fix this in the prototype.

	umad2sim/sim_client: fix debug prints format strings

2008-01-27  Sasha Khapyorsky  <sashak@voltaire.com>

	Remove trailing whitespaces

2008-01-03  Sasha Khapyorsky  <sashak@voltaire.com>

	dist.sh: add tests directory
	Add 'tests' directory to dist list.

	tests/mcast_storm.c: indentation fixes

2008-01-03  Sasha Khapyorsky  <sashak@voltaire.com>

	tests/mcast_storm.c: test program example
	This is test program example - it simulates mc member leave/join storm.
	Currently only with ipoib mc group.

	It is not included in ibsim build by default, to build run

	  make -C tests

2008-01-02  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: drop duplicated parameters from link_ports()
	Port struct already has 'node' field - so we don't need those duplicated
	parameters (lnode, rnode) in link_ports().

2007-12-31  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: match client by nodeid and nodedesc
	Match client's host by nodeid and nodedesc - this lets to client to use
	node description as SIM_HOST.

2007-12-22  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: prevent print buffer overflow
	The buffer used for DR path print can be overflowed then long path is
	requested. Use snprintf() instead of sprintf() to prevent this.

2007-12-09  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim.spec.in: export CFLAGS and LDFLAGS with make install
	Some distros (at least sles10-ppc) don't use default gcc settings, and
	also don't export desired CFLAGS and LDFLAGS with %build macro. So do it
	explicitly with 'make' and 'make install' (%build and %install rpm tags).

2007-12-05  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim.spec.in: export CFLAGS and LDFLAGS
	Some distros (at least sles10-ppc) don't use default gcc settings, and
	also don't export desired CFLAGS and LDFLAGS with %build macro. So do it
	explicitly.

2007-12-01  Sasha Khapyorsky  <sashak@voltaire.com>

	umad2sim: prevent recursive read()s
	Prevent recursive read()s and use real_read() function in the wrapper.
	This should be faster snd without it compilation with CFLAGS='-O2
	-D_FORTIFY_SOURCE=2' fails.

2007-11-26  Sasha Khapyorsky  <sashak@voltaire.com>

	defs.mk: append CFLAGS, LDFLAGS
	Append values of CFLAGS, LDFLAGS instead of overwriting.

2007-11-12  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: verion 0.4

	README: typo fix

2007-11-08  Sasha Khapyorsky  <sashak@voltaire.com>

	make dist: add RELEASE var

	ibsim.spec.in: spec file template

	defs.mk: improvements
	Couple of improvements: strip variables, handle DESTDIR, check for
	passed via environment libpath and bin path variables.

	dist.sh: ibsim dist script
	ibsim dist script. Also 'make dist' target for Makefile.

	'install' make target
	This adds 'install' target to makefiles and also configurable 'prefix'
	variable.

2007-11-01  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: add set GUID command
	Add set GUID command - this changes GUID value for node or port. Could
	be useful for various tests - for instance for GUID duplication
	simulation.

	umad2sim: simulate /sys/.../ports/1/pkeys directory
	The client now will ask for first block ports pkey table (with
	SIM_CTL_GET_PKEYS control request), and will place the pkey values under
	simulated /sys/class/infiniband/ibsim0/ports/1/pkeys directory.

	ibsim: add SIM_CTL_GET_PKEYS request
	This will send first block of port pkey table where ibsim client is
	connected. Later it will be used by client for /sys/.../pkeys
	simulation.

	umad2sim: support for IB_USER_MAD_ENABLE_PKEY ioctl()

2007-10-15  Sasha Khapyorsky  <sashak@voltaire.com>

	umad2sim: optional local send error simulations
	There are optional _local_ send errors simulations for sequent MADs
	and by method. All is optional and disabled in compile time by default.

	ibsim: ibsim version
	Replace removed from libibcommon get_buld_version() and use instead
	tracked internally IBSIM_VERSION macro.

2007-08-05  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: use separate infile for console run
	Use separate infile (which is stdin) for ibsim console run.

2007-07-28  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: fix allocation size of port sl2vl table
	Fix allocation size of port sl2vl table (from switch ports).

2007-06-06  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: support for trap 144 sending

	ibsim: trap144 encoder

	ibsim: reorder node type enum values
	This is needed in order to meet most popular in IBA node type encoding
	(1 - Ca, 2 - Switch, 3 - Router).

	ibsim: fix trap request encoding

2007-06-04  Hal Rosenstock  <halr@voltaire.com>

	ibsim/sim_net.c: Fix comment
	ibsim/sim_net.c: Fix comment

2007-05-31  Hal Rosenstock  <halr@voltaire.com>

	ibsim/sim_client.c: Fix compile warning
	ibsim/sim_client.c: Eliminate the following compile warning:
	sim_client.c: In function `sim_init':
	sim_client.c:287: warning: passing arg 3 of `getsockname' from incompatible pointer type

2007-05-24  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: fix node desc parsing
	Don't drop rest of node comment line when node description is provided.

	umad2sim: use local mode if connect_host is empty

2007-03-29  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: uninitialized variable fix
	Variable 'esp0' can be used without initialization. Fix this.

2007-03-18  Hal Rosenstock  <halr@voltaire.com>

	ibsim/sim_mad.c: Add initial support for GUIDInfo attribute
	Note: this requires latest libibmad on either master or ofed_1_2 branch
	of management repository

2007-03-15  Sasha Khapyorsky  <sashak@voltaire.com>

	inet: minor cleanups
	- don't generate client id as host addr + port. Use only port value
	- remove ununsed vars and minor cleanups

	inet: ibsim server ports are 7070-7079 by default
	Change IBSIM_DEFAULT_SERVER_PORT value to 7070, so ports range
	(7070-7079) will not conflict with known ones (8008).

2007-03-15  Alex Netes  <alexne@voltaire.com>

	ibsim - inet sockets implementation
	From: Alex Netes <alexne@voltaire.com>
	Subject: ibsim - inet sockets implementation

	Here is a new ibsim version, containing support for inet sockets.

	Usage:

	ibsim - server
	===============
	User can execute ibsim to work on inet sockets by using '-r' option:

	  ./ibsim -r [-l port] <options> <net_file>

	Optionally port number (instead of the default value) where ibsim should
	listen for ctl connections can be specified with '-l' option.

	umad2sim - client
	=================
	There are 2 environment variables user can to define in order to work
	remotely with the ibsim:

	IBSIM_SERVER_NAME - ibsim's machine name or IP address.
	IBSIM_SERVER_PORT - ibsim listening port as defined on the server. This
	                    one is optional and when not defined the default
			    ibsim port value will e used instead.

	If the user wants to use UNIX sockets IBSIM_SERVER_NAME must be "" or
	undefined.

	General implementation notes: I remained the original code and added
	inet socket support where needed.

2007-03-14  Sasha Khapyorsky  <sashak@voltaire.com>

	defs.mk: fix lib detection for ofed on x86_64
	On x86_64 OFED 1.2 installs 64 and 32 bit libraries into under lib64 and
	lib directories.

	ibsim: port pkey table init fix
	This fixes memory corruption triggered by invalid pkey table allocation
	for ports >= 2.

2007-03-12  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: remove global netcon array
	Remove global socket file descriptor netcon[] array, instead use
	client's 'fd' field. This field is renamed from 'outfd'

	ibsim: maxfd value fix
	Fixin maxfd parameter value used with select().

2007-03-08  Hal Rosenstock  <halr@voltaire.com>

	ibsim/TODO: Fix typo
	ibsim/TODO: Fix typo

	ibsim/sim_mad.c: Cosmetic change to warning message
	ibsim/sim_mad.c: In process_packet, cosmetic change to warning message

2007-03-07  Hal Rosenstock  <halr@voltaire.com>

	ibsim/sim.h: Increase MAXNETNODES to 2048
	ibsim/sim.h: Increase MAXNETNODES to 2048

2007-03-05  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: add free_core() prototype in ibsim/sim_cmd.c

2007-03-05  Hal Rosenstock  <halr@voltaire.com>

	ibsim/sim_cmd.c: Free memory on console quit
	ibsim/sim_cmd.c: Free memory on console quit

2007-03-03  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: trivial transaction id matching
	Encode requester client id into the upper 32 bit of transaction id, and
	match the client when processing responses. This makes possible to client
	to process multiple requests.

2007-03-01  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: rename *switchs variables to *switches

	ibsim: allocate switch fdb and mfdb dynamically
	fdb and mfdb buffers are large, so allocate it dynamically according to
	ibsim needs.

2007-02-28  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: free allocated mem before exit
	Freeing allocated memory before exit.

2007-02-28  Hal Rosenstock  <halr@voltaire.com>

	TRIVIAL ibsim/sim_mad.c: trap 128 message improvements
	ibsim/sim_mad.c: Eliminate message on trap 128 for other than switches
	Also, indicate LID and SMLID in error message. Also, cosmetic change to
	another message.

	ibsim/ibsim.c: Support max multicast cap command line option
	ibsim/ibsim.c: Support max multicast cap command line option

2007-02-28  Sasha Khapyorsky  <sashak@voltaire.com>

	TODO: support for combined routing is added (only in TODO list)

	ibsim: add switch enhanced/base port 0 parser

	ibsim: fixes for node description parser
	Couple of fixes: use initialized string pointer, don't fail when node
	description is not found, just return if pattern doesn't found.

	TODO: updates

	ibsim: parse node description properly

2007-02-28  Hal Rosenstock  <halr@voltaire.com>

	ibsim/ibsim.c: Cosmetic change to IBWARN message
	ibsim/ibsim.c: Cosmetic change to IBWARN message for consistency

	ibsim/sim_cmd.c: Fix typo in help
	ibsim/sim_cmd.c: Fix typo in help
	Also, cosmetic formatting change

2007-02-28  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: inactive state fix
	When ibsim is started without -s option (autostart), this will sleep
	forever instead of console input processing. This patch fixes that.

	ibsim: parsed lines counting fix

2007-02-27  Hal Rosenstock  <halr@voltaire.com>

	ibsim/sim_mad.c: In pathstr, output DR path in OpenIB format
	ibsim/sim_mad.c: In pathstr, output DR path in OpenIB format

	ibsim/sim.h: Increase MAXMCASTCAP
	ibsim/sim.h: Increase MAXMCASTCAP from 64 to 1024 to be in line with
	Anafa 2/Anafa

	ibsim/ibsim.c: Display max multicast cap supported
	ibsim/ibsim.c: Display max multicast cap supported

2007-02-26  Hal Rosenstock  <halr@voltaire.com>

	ibsim: Update copyright years
	ibsim: Update copyright years

	ibsim: Fix switches typo
	ibsim: Fix switches typo in output and comments

2007-02-25  Hal Rosenstock  <halr@voltaire.com>

	ibsim/sim_cmd.c: Cosmetic change to quit message

	ibsim/sim_net.c: Cosmetic change to netconf file parse message

2007-02-21  Sasha Khapyorsky  <sashak@voltaire.com>

	scripts/run_opensm.sh: handle SIGUSR1 in debug mode
	Add SIGUSR1 handling to gdb setup file for debug mode.

2007-02-19  Sasha Khapyorsky  <sashak@voltaire.com>

	scripts/run_opensm.sh: Don't write .gdbinit
	Don't write gdb initial commands into generic .gdbinit file. Use another
	file for this.

2007-02-14  Sasha Khapyorsky  <sashak@voltaire.com>

	Merge branch 'sk/fixes'

	defs.mk: prefix variable
	Use prefix makefile var for library path resolution. Currently default
	is OFED installation path (/usr/local/ofed). Hopefully we will change
	this to '/usr/local' soon.

	defs.mk: fix lib/lib64 detection issues

2007-02-13  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: use fileno() rather than hardcoded fd number.

	make: clean .build_profile at 'make clean'
	Romove .build_profile file when 'make clean' is invoked.

	ibsim: drop error message then ctl response fails

	ibsim: use node_type_name() for printing
	Since routers is supported use node_type_name() for node type string
	printing rather than dual state 'type == SWITCH_NODE ? "Switch" : "Hca" ;'

2007-02-13  Hal Rosenstock  <halr@voltaire.com>

	ibsim/sim_mad.c: Commentary change
	To: Sasha Khapyorsky <sashak@voltaire.com>
	Subject: {PATCH][TRIVIAL] ibsim/sim_mad.c: Commentary change

2007-02-13  Hal Rosenstock  <halr@voltaire.com>

	ibsim: Add support for routers
	To: Sasha Khapyorsky <sashak@voltaire.com>
	Subject: [PATCH] ibsim: Add support for routers

	The following patch has been compiled but is untested.

2007-02-13  Sasha Khapyorsky  <sashak@voltaire.com>

	ibsim: restore SMINFO redirection style processing
	Restore SMINFO redirection style processing.

	Initial ibsim sources.
	Initial ibsim sources contributed by Voltaire.
