ssa.c: Use -1 rather than 0 as socket id for "fake" ACMs

Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
core.c: Use DB_EPOCH_INVALID rather than 0 in core_extract_db

Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
[ssa.c,core.c,ssa_mad.h] Add bad_parent flag to ssa_member_record.

  If the flag is "true", a node can't establish connection for
  curent parent and asks the core for new one.
Add reconect
ssa.c: Remove trailing whitespace
ssa.c: Skip reconnect if max. count is reached
ssa.c: Add  ssa_upstream_stop_reconnection_timer function
ssa.c: Fix some issues in reconnect