OSDN Git Service

IB/mlx5: Add advise_mr() support
authorMoni Shoua <monis@mellanox.com>
Tue, 11 Dec 2018 11:37:53 +0000 (13:37 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 18 Dec 2018 22:26:19 +0000 (15:26 -0700)
commit813e90b1aeaa550641332625174d57edb15bc8bd
tree00699c511ed101aaaa630392093cc9505c7474af
parentad8a4496757f6f7344011a20a07195bd27e3989c
IB/mlx5: Add advise_mr() support

The verb advise_mr() is used to give advice to the kernel about an address
range that belongs to a MR.  Implement the verb and register it on the
device. The current implementation supports the only known advice to date,
prefetch.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/odp.c