OSDN Git Service

IB/mlx5: Add DEVX support for memory registration
authorYishai Hadas <yishaih@mellanox.com>
Sun, 17 Jun 2018 10:00:04 +0000 (13:00 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Jun 2018 16:53:02 +0000 (10:53 -0600)
commitaeae94579caf77406a8a235ea33fdb67abe9a57e
tree27e16ea1a1840d95801afd339355c759f17c7b2f
parent7c043e908a74ae0a935037cdd984d0cb89b2b970
IB/mlx5: Add DEVX support for memory registration

Add support to register a memory with the firmware via the DEVX
interface.

The driver translates a given user address to ib_umem then it will
register the physical addresses with the firmware and get a unique id
for this registration to be used for this virtual address.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c
include/linux/mlx5/mlx5_ifc.h
include/uapi/rdma/mlx5_user_ioctl_cmds.h