[IBAL, HW] Remove pointers from ci_umv_buf_t.
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 13 Jul 2008 10:43:22 +0000 (10:43 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 13 Jul 2008 10:43:22 +0000 (10:43 +0000)
commita6fc55b31cc3424c45a4ff341bee860fbc143a1f
tree21734fbf18057891090909f9fb0e8c37aabaf5ea
parentd2e40814e2cfdf1c8e8b3d8c5cf0354d0aa45154
[IBAL, HW]  Remove pointers from ci_umv_buf_t.

Part of cleaning up the __ptr64 stuff properly - rather than use the TO_LONG_PTR in the ci_umv_buf_t structure, use uint64_t.

The problem with using TO_LONG_PTR in structures that are exchanged between 32-bit clients and 64-bit drivers is that care must be taken to ensure that the upper 'padding' bytes are cleared properly.

Making the field a uint64_t makes it fool proof (though it does require casting, but at least the compiler will trap errors unlike for the padding.)

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1384 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
23 files changed:
core/al/kernel/al_proxy_verbs.c
hw/mlx4/kernel/hca/data.h
hw/mlx4/kernel/hca/mr.c
hw/mlx4/kernel/hca/pd.c
hw/mlx4/kernel/hca/qp.c
hw/mlx4/kernel/hca/verbs.c
hw/mlx4/kernel/hca/vp.c
hw/mlx4/user/hca/verbs.c
hw/mthca/kernel/hca_verbs.c
hw/mthca/kernel/mt_verbs.c
hw/mthca/kernel/mthca_provider.c
hw/mthca/kernel/mthca_provider.h
hw/mthca/user/mlnx_ual_av.c
hw/mthca/user/mlnx_ual_ca.c
hw/mthca/user/mlnx_ual_cq.c
hw/mthca/user/mlnx_ual_data.h
hw/mthca/user/mlnx_ual_mcast.c
hw/mthca/user/mlnx_ual_mrw.c
hw/mthca/user/mlnx_ual_pd.c
hw/mthca/user/mlnx_ual_qp.c
hw/mthca/user/mlnx_ual_srq.c
hw/mthca/user/mlnx_uvp.h
inc/iba/ib_ci.h