@@ -1318,9 +1318,6 @@
/* wqe size considering 32 bytes per wqe*/
#define I40IWQP_SW_MIN_WQSIZE 4 /* 128 bytes */
#define I40IWQP_SW_MAX_WQSIZE 2048 /* 2048 bytes */
-
-#define I40IWQP_SW_WQSIZE_1024 1024
-
#define I40IWQP_OP_RDMA_WRITE 0
#define I40IWQP_OP_RDMA_READ 1
#define I40IWQP_OP_RDMA_SEND 3
@@ -537,8 +537,6 @@ static int i40iw_vmapped_qp(struct i40iw_uqp *iwuqp, struct ibv_pd *pd,
struct ibv_reg_mr_resp reg_mr_resp;
memset(®_mr_cmd, 0, sizeof(reg_mr_cmd));
- if ((sqdepth % I40IWQP_SW_WQSIZE_1024))
- sqdepth = sqdepth + I40IWQP_SW_WQSIZE_1024 - (sqdepth % I40IWQP_SW_WQSIZE_1024);
sqsize = sqdepth * I40IW_QP_WQE_MIN_SIZE;
rqsize = rqdepth * I40IW_QP_WQE_MIN_SIZE;