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

Commit ffd43592 authored by Steve Wise's avatar Steve Wise Committed by Roland Dreier
Browse files

RDMA/cxgb4: Cap CQ size at T4_MAX_IQ_SIZE

parent e24a72a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -881,7 +881,7 @@ struct ib_cq *c4iw_create_cq(struct ib_device *ibdev, int entries,
	/*
	 * Make actual HW queue 2x to avoid cdix_inc overflows.
	 */
	hwentries = entries * 2;
	hwentries = min(entries * 2, T4_MAX_IQ_SIZE);

	/*
	 * Make HW queue at least 64 entries so GTS updates aren't too