Commit f448db65 authored by Shuai Wu's avatar Shuai Wu
Browse files

RDMA/hiroce3: Fix allmodconfig build frame size error

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IA6P6T


CVE: NA

---------------------------------

Fix allmodconfig build frame size is large than 2048 bytes error
in hiroce3 driver.

Fixes: ae52f9c5 ("infiniband/hw/hiroce3: Add Huawei Intelligent Network Card RDMA Driver")
Signed-off-by: default avatarShuai Wu <wushuai51@huawei.com>
parent 4850d3d8
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -73,15 +73,13 @@ static int roce3_dfx_get_dev_algo(const struct roce3_dfx_query_inbuf *inbuf,
	struct roce3_device *rdev, union roce3_dfx_query_outbuf *outbuf)
{
	u32 cc_algo;
	struct roce3_ecn_ctx ecn_ctx;
	u32 *algo_type = &outbuf->algo_type;

	if (rdev == NULL) {
		pr_err("[ROCE, ERR] %s: Failed to get roce device.\n", __func__);
		return -EINVAL;
	}
	ecn_ctx = rdev->ecn_ctx;
	cc_algo = ecn_ctx.cc_algo;
	cc_algo = rdev->ecn_ctx.cc_algo;
	*algo_type = cc_algo;

	return 0;