linux/drivers/infiniband/hw/efa
Moni Shoua 33006bd4f3 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>
2020-01-16 16:14:36 +02:00
..
efa_admin_cmds_defs.h RDMA/efa: Expose RDMA read related attributes 2019-11-25 10:31:48 -04:00
efa_admin_defs.h
efa_com_cmd.c RDMA/efa: Expose RDMA read related attributes 2019-11-25 10:31:48 -04:00
efa_com_cmd.h RDMA/efa: Expose RDMA read related attributes 2019-11-25 10:31:48 -04:00
efa_com.c RDMA/efa: Clear the admin command buffer prior to its submission 2019-11-14 11:57:33 -04:00
efa_com.h RDMA/efa: Remove unneeded admin commands abort flow 2019-05-29 13:14:14 -03:00
efa_common_defs.h
efa_main.c RDMA/efa: Store network attributes in device attributes 2019-11-25 10:31:47 -04:00
efa_regs_defs.h
efa_verbs.c IB/core: Introduce ib_reg_user_mr 2020-01-16 16:14:36 +02:00
efa.h RDMA/efa: Store network attributes in device attributes 2019-11-25 10:31:47 -04:00
Kconfig RDMA/efa: Add driver to Kconfig/Makefile 2019-05-07 12:47:47 -03:00
Makefile RDMA/efa: Add driver to Kconfig/Makefile 2019-05-07 12:47:47 -03:00