ssa.c: Revert commit 8dc90fb56a5194a0618bc6bdb711b65c4aa2a4a2

Better to have missing frees rather than double frees

commit 8dc90fb56a5194a0618bc6bdb711b65c4aa2a4a2
Author: Hal Rosenstock <hal@mellanox.com>
Date:   Tue Jul 15 20:39:29 2014 +0300

    ssa.c: In ssa_close_devices, add a couple of missing frees

    of smdb and prdb

    Pointed-out-by: Ilya Nelkenbaum <ilyan@mellanox.com>

    Signed-off-by: Hal Rosenstock <hal@mellanox.com>

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Add ACM query timer configurability

The patch adds two new configuration parameters for ACM
when in SSA mode:
 * acm_query_timeout specifies timeout (in microseconds) before a query
 * acm_query_retries specifies number of query retries

Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
ssa.c: Cosmetic formatting change to copyright for LLNL

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
ssa.c: Update flow for access node and combined distribution + access node

Prepare to update and Ready for update messages are added
prior to DB update message.

A number of debug log messages were left in for now.

Combined core + access node is not yet supported with update flow.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
ssa.c: In ssa_upstream_handle_op, add debug log message

to show the number of (DB update) prepare messages sent by upstream.

Same as debug log message in core upon handling extract event.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
ssa.c: Simplify access node check in ssa_upstream_send_db_update_prepare

combined core node never calls this routine

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Update flow for combined core + access node

Prepare to update and Ready for update messages are added
prior to DB update message.

A number of debug log messages were left in for now.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
acm.c: Handle 0 retries in acm_issue_query

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
acm.c: In acm_issue_query, add unsuccessful DB query log message on exit

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
acm.c: In acm_svr_resolve_path, only issue DB query if acm_issue_query_done

when in SSA mode

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
acm.c: Minor change to combine 2 ifs into 1 in acm_issue_query

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
ssa.c: Cosmetic formatting change

Signed-off-by: Hal Rosenstock <hal@mellanox.com>