提交 af324d95 编写于 作者: H Hu Chunzhi 提交者: Xie XiuQi

RDMA/hns: Delete unused parameters and functions

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch deletes unused parameters and functions.
Reviewed-by: NHuang Dongdong <hdd.huang@huawei.com>
Signed-off-by: NHu Chunzhi <huchunzhi@huawei.com>
Acked-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 36c62c02
......@@ -16,11 +16,11 @@ unsigned int hr_cq_max_cnt = 0x1;
module_param(hr_cq_max_cnt, uint, 0644);
MODULE_PARM_DESC(hr_cq_max_cnt, "max cnt of cqe to ceqe");
unsigned int hr_ceq_period = HNS_ROCE_V2_EQ_DEFAULT_INTERVAL;
unsigned int hr_ceq_period = 0x1;
module_param(hr_ceq_period, uint, 0644);
MODULE_PARM_DESC(hr_ceq_period, "timeout of ceqe to int");
unsigned int hr_aeq_period = HNS_ROCE_V2_EQ_DEFAULT_INTERVAL;
unsigned int hr_aeq_period = 0x1;
module_param(hr_aeq_period, uint, 0644);
MODULE_PARM_DESC(hr_aeq_period, "timeout of aeqe to int");
......@@ -40,34 +40,6 @@ unsigned int hr_aeq_arm_st = HNS_ROCE_V2_EQ_ALWAYS_ARMED;
module_param(hr_aeq_arm_st, uint, 0644);
MODULE_PARM_DESC(hr_aeq_arm_st, "arm state of aeq");
unsigned int func_num = 0x1;
module_param(func_num, uint, 0644);
MODULE_PARM_DESC(func_num, "function num contain pfs and vfs");
unsigned int dump_cqe_en = 0x1;
module_param(dump_cqe_en, uint, 0644);
MODULE_PARM_DESC(dump_cqe_en, "dump cqe while cqe status isn't success nor flush error");
unsigned int v2_resv_pds;
module_param(v2_resv_pds, uint, 0644);
MODULE_PARM_DESC(v2_resv_pds, "reserved pd num, default is 0");
unsigned int v2_resv_qps = 0x8;
module_param(v2_resv_qps, uint, 0644);
MODULE_PARM_DESC(v2_resv_qps, "reserved qp num, default is 8");
unsigned int v2_resv_mrws = 0x1;
module_param(v2_resv_mrws, uint, 0644);
MODULE_PARM_DESC(v2_resv_mrws, "reserved mr/mw num, default is 1");
unsigned int v2_resv_cqs;
module_param(v2_resv_cqs, uint, 0644);
MODULE_PARM_DESC(v2_resv_cqs, "reserved cq num, default is 0");
unsigned int v2_resv_srqs;
module_param(v2_resv_srqs, uint, 0644);
MODULE_PARM_DESC(v2_resv_srqs, "reserved srq num, default is 0");
void test_set_cqc_param(unsigned int *period, unsigned int *max_cnt)
{
*period = hr_cq_period;
......@@ -87,19 +59,3 @@ void test_set_eq_param(int eq_type, unsigned int *eq_period,
*eq_arm_st = hr_ceq_arm_st;
}
}
unsigned int get_func_num(void)
{
if (func_num > 4 || func_num == 0) {
pr_info("func num config err. config value - %d\n", func_num);
return 1;
}
return func_num;
}
unsigned int test_get_dump_cqe_en(void)
{
return dump_cqe_en;
}
......@@ -6,14 +6,5 @@
void test_set_cqc_param(unsigned int *period, unsigned int *max_cnt);
void test_set_eq_param(int eq_type, unsigned int *eq_period,
unsigned int *eq_max_cnt, unsigned int *eq_arm_st);
unsigned int get_func_num(void);
unsigned int test_get_dump_cqe_en(void);
unsigned int test_print_mb(void);
extern unsigned int v2_resv_pds;
extern unsigned int v2_resv_qps;
extern unsigned int v2_resv_mrws;
extern unsigned int v2_resv_cqs;
extern unsigned int v2_resv_srqs;
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册