Commit af0187bf authored by Alexey Marchuk's avatar Alexey Marchuk Committed by Konrad Sztyber
Browse files

nvme/rdma: Remove qpair::max_recv_sge as unused



Signed-off-by: default avatarAlexey Marchuk <alexeymar@nvidia.com>
Change-Id: I92cb54e92e93ffccc9bfaa42deab30a5433d336f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24696


Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarBen Walker <ben@nvidia.com>
parent f0e4b91f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -198,8 +198,6 @@ struct nvme_rdma_qpair {

	uint32_t				max_send_sge;

	uint32_t				max_recv_sge;

	uint16_t				num_entries;

	bool					delay_cmd_submit;
@@ -726,7 +724,6 @@ nvme_rdma_qpair_init(struct nvme_rdma_qpair *rqpair)

	/* ibv_create_qp will change the values in attr.cap. Make sure we store the proper value. */
	rqpair->max_send_sge = spdk_min(NVME_RDMA_DEFAULT_TX_SGE, attr.cap.max_send_sge);
	rqpair->max_recv_sge = spdk_min(NVME_RDMA_DEFAULT_RX_SGE, attr.cap.max_recv_sge);
	rqpair->current_num_sends = 0;

	rqpair->cm_id->context = rqpair;
+0 −1
Original line number Diff line number Diff line
@@ -976,7 +976,6 @@ test_nvme_rdma_qpair_init(void)

	CU_ASSERT(rqpair.cm_id->context == &rqpair.qpair);
	CU_ASSERT(rqpair.max_send_sge == NVME_RDMA_DEFAULT_TX_SGE);
	CU_ASSERT(rqpair.max_recv_sge == NVME_RDMA_DEFAULT_RX_SGE);
	CU_ASSERT(rqpair.current_num_sends == 0);
	CU_ASSERT(rqpair.cq == (struct ibv_cq *)0xFEEDBEEF);