Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 622b85f9 authored by Lijun Ou's avatar Lijun Ou Committed by Doug Ledford
Browse files

IB/hns: Remove parameters of resize cq



In old version of RoCE, it doesn't support to resize cq.
So, we remove parameters related to resize cq.

Signed-off-by: default avatarLijun Ou <oulijun@huawei.com>
Signed-off-by: default avatarDongdong Huang(Donald) <hdd.huang@huawei.com>
Reviewed-by: default avatarWei Hu <xavier.huwei@huawei.com>
Signed-off-by: default avatarSalil Mehta <salil.mehta@huawei.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent a4be892e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -299,10 +299,7 @@ struct ib_cq *hns_roce_ib_create_cq(struct ib_device *ib_dev,

	cq_entries = roundup_pow_of_two((unsigned int)cq_entries);
	hr_cq->ib_cq.cqe = cq_entries - 1;
	mutex_init(&hr_cq->resize_mutex);
	spin_lock_init(&hr_cq->lock);
	hr_cq->hr_resize_buf = NULL;
	hr_cq->resize_umem = NULL;

	if (context) {
		if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) {
+0 −9
Original line number Diff line number Diff line
@@ -284,20 +284,11 @@ struct hns_roce_cq_buf {
	struct hns_roce_mtt hr_mtt;
};

struct hns_roce_cq_resize {
	struct hns_roce_cq_buf	hr_buf;
	int			cqe;
};

struct hns_roce_cq {
	struct ib_cq			ib_cq;
	struct hns_roce_cq_buf		hr_buf;
	/* pointer to store information after resize*/
	struct hns_roce_cq_resize	*hr_resize_buf;
	spinlock_t			lock;
	struct mutex			resize_mutex;
	struct ib_umem			*umem;
	struct ib_umem			*resize_umem;
	void (*comp)(struct hns_roce_cq *);
	void (*event)(struct hns_roce_cq *, enum hns_roce_event);