RDMA/core: Add optional access flags range
Define a range of access flags that are defined to be optional, both uverbs and drivers should enable getting them and use if they are applicable This will be used, for example, for the relaxed ordering access flag which unsupporting drivers can ignore. Link: https://lore.kernel.org/r/1578506740-22188-7-git-send-email-yishaih@mellanox.com Signed-off-by: Michael Guralnik <michaelgur@mellanox.com> Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
ca95c14111
commit
68d384b906
@@ -1419,7 +1419,9 @@ enum ib_access_flags {
|
||||
IB_ACCESS_ON_DEMAND = IB_UVERBS_ACCESS_ON_DEMAND,
|
||||
IB_ACCESS_HUGETLB = IB_UVERBS_ACCESS_HUGETLB,
|
||||
|
||||
IB_ACCESS_SUPPORTED = ((IB_ACCESS_HUGETLB << 1) - 1)
|
||||
IB_ACCESS_OPTIONAL = IB_UVERBS_ACCESS_OPTIONAL_RANGE,
|
||||
IB_ACCESS_SUPPORTED =
|
||||
((IB_ACCESS_HUGETLB << 1) - 1) | IB_ACCESS_OPTIONAL,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user