OSDN Git Service

RDMA/efa: Mask access flags with the correct optional range
authorGal Pressman <galpress@amazon.com>
Wed, 29 Jan 2020 07:18:03 +0000 (09:18 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 29 Jan 2020 20:41:05 +0000 (16:41 -0400)
commitba19e16651a5c67fa8b53ce4fb5bfbab8d326b6c
treeaf24b18708094dc4bd28af3309e097af125662f9
parentb4fb4cc5ba83b20dae13cef116c33648e81d2f44
RDMA/efa: Mask access flags with the correct optional range

The uapi value IB_UVERBS_ACCESS_OPTIONAL_RANGE shouldn't be used inside
the driver, use IB_ACCESS_OPTIONAL instead.

Fixes: 86dd738cf20c ("RDMA/efa: Allow passing of optional access flags for MR registration")
Link: https://lore.kernel.org/r/20200129071803.40117-1-galpress@amazon.com
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/efa/efa_verbs.c