The 'SA request' code creates an AV for the SA. It wants to use a default LID of 1, but does not byte-swap the value. Swap the value.
Because the AV is modified later to use the real SM LID, the value used here is irrelevant, but using a non-swapped value looks like a bug to anyone reading it.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1793
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
/* Create an address vector for the SA. */\r
av_attr.port_num = p_sa_req_svc->port_num;\r
av_attr.sl = p_sa_req_svc->sm_sl;\r
- av_attr.dlid = 1;\r
+ av_attr.dlid = cl_hton16(1);\r
av_attr.grh_valid = FALSE;\r
av_attr.static_rate = IB_PATH_RECORD_RATE_10_GBS;\r
av_attr.path_bits = 0;\r