diff options
author | Gal Pressman <galpress@amazon.com> | 2018-12-12 11:09:05 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-12-19 16:17:19 -0700 |
commit | b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb (patch) | |
tree | 0704aa8ff0477e5847ceb00dceac988f206ca3b0 /drivers/infiniband/hw/bnxt_re/ib_verbs.c | |
parent | 5dabcd0456d7ee17c2c7a17d7c2305444d2b9639 (diff) | |
download | lwn-b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb.tar.gz lwn-b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb.zip |
RDMA: Mark if create address handle is in a sleepable context
Introduce a 'flags' field to create address handle callback and add a flag
that marks whether the callback is executed in an atomic context or not.
This will allow drivers to wait for completion instead of polling for it
when it is allowed.
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/ib_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/ib_verbs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index 611bacd00b80..4b37bc3edc81 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -664,6 +664,7 @@ int bnxt_re_destroy_ah(struct ib_ah *ib_ah) struct ib_ah *bnxt_re_create_ah(struct ib_pd *ib_pd, struct rdma_ah_attr *ah_attr, + u32 flags, struct ib_udata *udata) { struct bnxt_re_pd *pd = container_of(ib_pd, struct bnxt_re_pd, ib_pd); |