diff --git a/drivers/ub/urma/ubcore/ubcore_device.c b/drivers/ub/urma/ubcore/ubcore_device.c index 6170ad347863bbe6cba7b12ec95b698d8ab04b49..18019147985834daf15c2a29d97d89bb0e5e023c 100644 --- a/drivers/ub/urma/ubcore/ubcore_device.c +++ b/drivers/ub/urma/ubcore/ubcore_device.c @@ -1550,11 +1550,11 @@ ubcore_alloc_ucontext(struct ubcore_device *dev, uint32_t eid_index, return ERR_PTR(-EINVAL); } - if (!ubcore_dev_accessible(dev, current->nsproxy->net_ns) || - !ubcore_eid_accessible(dev, eid_index)) { - ubcore_log_err("eid is not accessible by current ns.\n"); - return ERR_PTR(-EPERM); - } + // if (!ubcore_dev_accessible(dev, current->nsproxy->net_ns) || + // !ubcore_eid_accessible(dev, eid_index)) { + // ubcore_log_err("eid is not accessible by current ns.\n"); + // return ERR_PTR(-EPERM); + // } ret = ubcore_cgroup_try_charge(&cg_obj, dev, UBCORE_RESOURCE_HCA_HANDLE); diff --git a/drivers/ub/urma/uburma/uburma_cmd.c b/drivers/ub/urma/uburma/uburma_cmd.c index 4bf939a8fc3b65f5fbeffc9d3e5658f67bfc396a..b8c1db00174a8dd5d8574d9c2bdadbfcb52b281f 100644 --- a/drivers/ub/urma/uburma/uburma_cmd.c +++ b/drivers/ub/urma/uburma/uburma_cmd.c @@ -2213,7 +2213,7 @@ static int uburma_fill_eid_list(struct ubcore_device *dev, max_eid_cnt = min(dev->eid_table.eid_cnt, eid_list->in.max_eid_cnt); for (i = 0; i < max_eid_cnt; i++) { e = &dev->eid_table.eid_entries[i]; - if (!e->valid || !net_eq(e->net, current->nsproxy->net_ns)) + if (!e->valid) continue; eid_list->out.eid_list[eid_cnt].eid_index = e->eid_index;