winverbs: convert RDMA address to network-byte order
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 11 Jun 2009 04:02:27 +0000 (04:02 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 11 Jun 2009 04:02:27 +0000 (04:02 +0000)
commit47580a1cf69ea294ec53a4a2aa076793972be42c
tree27e775c3f6ceb2db8199c5f20450267a58280d35
parent451f2974cf4f3c2af4aa103860a98be76406a92e
winverbs: convert RDMA address to network-byte order

Change the winverbs interface to accept remote RDMA addresses in network
byte order.  This keeps it consistent with all other remote/wire data fields.

Unfortunately, this means that the remote address must be swizzled between
winverbs and the HCA libraries, which take the address in host order, but
the other fields in network order.  Longer term, the HCA libraries can provide
optimized interfaces for winverbs, like posting a single work request.

For now, to avoid compatibility issues later, define the winverbs interface
using what's most reasonable.  Update libibverbs accordingly.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2245 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
core/winverbs/user/wv_base.h
core/winverbs/user/wv_qp.cpp
inc/user/rdma/winverbs.h
ulp/libibverbs/src/verbs.cpp