]> git.openfabrics.org - ~shefty/ibacm.git/commit
acm: Save endpoint pkey in host order
authorHal Rosenstock <hal@dev.mellanox.co.il>
Thu, 1 Aug 2013 21:10:00 +0000 (14:10 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 1 Aug 2013 21:10:00 +0000 (14:10 -0700)
commitd3922a5a044a2d14f9a21ba571b125e0417e1274
tree40a738464f4149e1d69afcf8e104cb064253e968
parent3ed1df2c7799e85fa4c30795e07b180319fa585a
acm: Save endpoint pkey in host order

acm_ep stores and uses a pkey value, assuming that it is in
host order.  However, ibv_query_pkey returns the pkey in network
order.  We need to byte swap the pkey when saving it.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c