IB/core: Make testing MR flags for writability a static inline function
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 23 May 2018 12:30:30 +0000 (15:30 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 28 May 2018 17:41:39 +0000 (11:41 -0600)
commit08bb558ac11ab944e0539e78619d7b4c356278bd
tree41e3c9c3d0d3bc2a3c764765568c4f711d067403
parent55ba49cbcef37053d973f9a45bc58818c333fe13
IB/core: Make testing MR flags for writability a static inline function

Make the MR writability flags check, which is performed in umem.c,
a static inline function in file ib_verbs.h

This allows the function to be used by low-level infiniband drivers.

Cc: <stable@vger.kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/umem.c
include/rdma/ib_verbs.h