perftest
perftest copied to clipboard
Allocate correct size buffer
In ctx_alloc_credit function in perftest_resources.c file, ctrl_buf is allocated a size of user_param->num_of_qps however it is being memset to a size of buf_size:
ALLOCATE(ctx->ctrl_buf,uint32_t,user_param->num_of_qps); memset(&ctx->ctrl_buf[0],0,buf_size);
Fix this by allocating the right size ctrl_buf:
ALLOCATE(ctx->ctrl_buf,uint32_t,buf_size);
Hi Sindhu-Devale,
Thank you for collaboration! Please, send a corresponding PR.