From ccfe69c323ed1a9b019a48e98c330c8c4f80203c Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Thu, 15 Jul 2010 10:55:01 -0700 Subject: [PATCH] Refresh of srq --- trunk/core/winverbs/user/wv_uverbs.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/trunk/core/winverbs/user/wv_uverbs.cpp b/trunk/core/winverbs/user/wv_uverbs.cpp index d7073a16..1a315b41 100644 --- a/trunk/core/winverbs/user/wv_uverbs.cpp +++ b/trunk/core/winverbs/user/wv_uverbs.cpp @@ -39,7 +39,7 @@ WvPreOpenCa(const ib_net64_t ca_guid, ci_umv_buf_t *p_umv_buf, UNREFERENCED_PARAMETER(ca_guid); UNREFERENCED_PARAMETER(ph_uvp_ca); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -76,7 +76,7 @@ WvPreAllocatePd(ib_ca_handle_t h_uvp_ca, ci_umv_buf_t *p_umv_buf, UNREFERENCED_PARAMETER(h_uvp_ca); UNREFERENCED_PARAMETER(ph_uvp_pd); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -112,7 +112,7 @@ WvPreCreateAv(const ib_pd_handle_t h_uvp_pd, const ib_av_attr_t *p_addr_vector, UNREFERENCED_PARAMETER(p_addr_vector); UNREFERENCED_PARAMETER(ph_uvp_av); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -148,7 +148,7 @@ WvPreCreateSrq(const ib_pd_handle_t h_uvp_pd, const ib_srq_attr_t* const p_srq_a UNREFERENCED_PARAMETER(p_srq_attr); UNREFERENCED_PARAMETER(ph_uvp_srq); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -170,7 +170,7 @@ WvPreModifySrq(const ib_srq_handle_t h_uvp_srq, const ib_srq_attr_t * const p_sr UNREFERENCED_PARAMETER(p_srq_attr); UNREFERENCED_PARAMETER(srq_attr_mask); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -188,7 +188,7 @@ WvPreQuerySrq(ib_srq_handle_t h_uvp_srq, ci_umv_buf_t *p_umv_buf) { UNREFERENCED_PARAMETER(h_uvp_srq); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -234,7 +234,7 @@ WvPreModifyQp(const ib_qp_handle_t h_uvp_qp, const ib_qp_mod_t *p_modify_attr, UNREFERENCED_PARAMETER(h_uvp_qp); UNREFERENCED_PARAMETER(p_modify_attr); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -252,7 +252,7 @@ WvPreQueryQp(ib_qp_handle_t h_uvp_qp, ci_umv_buf_t *p_umv_buf) { UNREFERENCED_PARAMETER(h_uvp_qp); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -288,7 +288,7 @@ WvPreCreateCq(const ib_ca_handle_t h_uvp_ca, uint32_t* const p_size, UNREFERENCED_PARAMETER(p_size); UNREFERENCED_PARAMETER(ph_uvp_cq); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -310,7 +310,7 @@ WvPreResizeCq(const ib_cq_handle_t h_uvp_cq, uint32_t* const p_size, UNREFERENCED_PARAMETER(h_uvp_cq); UNREFERENCED_PARAMETER(p_size); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } @@ -345,7 +345,7 @@ WvPreCreateMw(const ib_pd_handle_t h_uvp_pd, ci_umv_buf_t *p_umv_buf, UNREFERENCED_PARAMETER(h_uvp_pd); UNREFERENCED_PARAMETER(ph_uvp_mw); - p_umv_buf->input_size = 0; + RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); return IB_SUCCESS; } -- 2.46.0