You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int ctx_set_recv_wqes(struct pingpong_context *ctx,struct perftest_parameters *user_param)
{
int i = 0,j,k;
int num_of_qps = user_param->num_of_qps;
struct ibv_recv_wr *bad_wr_recv;
int size_per_qp = user_param->rx_depth / user_param->recv_post_list;
the line is " ctx->recv_sge_list[i * user_param->recv_post_list].addr = ctx->rx_buffer_addr[i];"
in send/recv mode
at first, server side will post tx-depth recv wqes, those wqes addr is start at buf[i]+offset
after then, new rwqes addr is still start at buf[i]+offset
so the first tx-depth wqes and the second tx-depth wqes will use same addr
file: perftest/src /perftest_resources.c
int ctx_set_recv_wqes(struct pingpong_context *ctx,struct perftest_parameters *user_param)
{
int i = 0,j,k;
int num_of_qps = user_param->num_of_qps;
struct ibv_recv_wr *bad_wr_recv;
int size_per_qp = user_param->rx_depth / user_param->recv_post_list;
}
because of that line, there will has the same number of wqes as rx-depth use the same buf addr and data will be overwritten
I don't know whether my understanding is correct or not, and whether there are other dependent uses in this line?
The text was updated successfully, but these errors were encountered: