提交 10f85d96 编写于 作者: W wangsirong 提交者: Xie XiuQi

RDMA/hns: Separate the irq name for each dev

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Each device should has independent irq name.  It is independent
requirement for product, drivers will provide another plan for this.

Feature or Bugfix: Bugfix
Signed-off-by: Nwangsirong <wangsirong@huawei.com>
Signed-off-by: Nliyangyang (M) <liyangyang20@huawei.com>
Reviewed-by: Nliuyixian <liuyixian@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 7103a561
...@@ -6325,6 +6325,8 @@ static int hns_roce_v2_init_eq_table(struct hns_roce_dev *hr_dev) ...@@ -6325,6 +6325,8 @@ static int hns_roce_v2_init_eq_table(struct hns_roce_dev *hr_dev)
struct hns_roce_eq_table *eq_table = &hr_dev->eq_table; struct hns_roce_eq_table *eq_table = &hr_dev->eq_table;
struct device *dev = hr_dev->dev; struct device *dev = hr_dev->dev;
struct hns_roce_eq *eq; struct hns_roce_eq *eq;
static int dev_id = 0;
char queue_name[30];
unsigned int eq_cmd; unsigned int eq_cmd;
int irq_num; int irq_num;
int eq_num; int eq_num;
...@@ -6388,8 +6390,10 @@ static int hns_roce_v2_init_eq_table(struct hns_roce_dev *hr_dev) ...@@ -6388,8 +6390,10 @@ static int hns_roce_v2_init_eq_table(struct hns_roce_dev *hr_dev)
goto err_request_irq_fail; goto err_request_irq_fail;
} }
snprintf(queue_name, 29, "hns_roce_%d_irq_wq", dev_id);
dev_id++;
hr_dev->irq_workq = hr_dev->irq_workq =
create_singlethread_workqueue("hns_roce_irq_workqueue"); create_singlethread_workqueue(queue_name);
if (!hr_dev->irq_workq) { if (!hr_dev->irq_workq) {
dev_err(dev, "Create irq workqueue failed!\n"); dev_err(dev, "Create irq workqueue failed!\n");
ret = -ENOMEM; ret = -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册