Home
last modified time | relevance | path

Searched hist:"33006 bd4f37f7d2c3d1cf0268b4f327b5fdc2558" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/infiniband/hw/efa/
H A Defa_verbs.cdiff 33006bd4f37f7d2c3d1cf0268b4f327b5fdc2558 Wed Jan 15 06:43:32 CST 2020 Moni Shoua <monis@mellanox.com> IB/core: Introduce ib_reg_user_mr

Add ib_reg_user_mr() for kernel ULPs to register user MRs.

The common use case that uses this function is a userspace application
that allocates memory for HCA access but the responsibility to register
the memory at the HCA is on an kernel ULP. This ULP that acts as an agent
for the userspace application.

This function is intended to be used without a user context so vendor
drivers need to be aware of calling reg_user_mr() device operation with
udata equal to NULL.

Among all drivers, i40iw is the only driver which relies on presence
of udata, so check udata existence for that driver.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
/openbmc/linux/drivers/infiniband/core/
H A Dverbs.cdiff 33006bd4f37f7d2c3d1cf0268b4f327b5fdc2558 Wed Jan 15 06:43:32 CST 2020 Moni Shoua <monis@mellanox.com> IB/core: Introduce ib_reg_user_mr

Add ib_reg_user_mr() for kernel ULPs to register user MRs.

The common use case that uses this function is a userspace application
that allocates memory for HCA access but the responsibility to register
the memory at the HCA is on an kernel ULP. This ULP that acts as an agent
for the userspace application.

This function is intended to be used without a user context so vendor
drivers need to be aware of calling reg_user_mr() device operation with
udata equal to NULL.

Among all drivers, i40iw is the only driver which relies on presence
of udata, so check udata existence for that driver.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
/openbmc/linux/include/rdma/
H A Dib_verbs.hdiff 33006bd4f37f7d2c3d1cf0268b4f327b5fdc2558 Wed Jan 15 06:43:32 CST 2020 Moni Shoua <monis@mellanox.com> IB/core: Introduce ib_reg_user_mr

Add ib_reg_user_mr() for kernel ULPs to register user MRs.

The common use case that uses this function is a userspace application
that allocates memory for HCA access but the responsibility to register
the memory at the HCA is on an kernel ULP. This ULP that acts as an agent
for the userspace application.

This function is intended to be used without a user context so vendor
drivers need to be aware of calling reg_user_mr() device operation with
udata equal to NULL.

Among all drivers, i40iw is the only driver which relies on presence
of udata, so check udata existence for that driver.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>