OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d8a749
)
IB/core: Allow setting create flags in QP init attribute
author
Eran Ben Elisha
<eranbe@mellanox.com>
Thu, 15 Oct 2015 11:44:37 +0000
(14:44 +0300)
committer
Doug Ledford
<dledford@redhat.com>
Thu, 22 Oct 2015 03:16:46 +0000
(23:16 -0400)
Allow setting IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK at create_flags in
ib_uverbs_create_qp_ex.
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/uverbs_cmd.c
b/drivers/infiniband/core/uverbs_cmd.c
index
b2a37d5
..
ece9f4c
100644
(file)
--- a/
drivers/infiniband/core/uverbs_cmd.c
+++ b/
drivers/infiniband/core/uverbs_cmd.c
@@
-1843,7
+1843,7
@@
static int create_qp(struct ib_uverbs_file *file,
sizeof(cmd->create_flags))
attr.create_flags = cmd->create_flags;
- if (attr.create_flags) {
+ if (attr.create_flags
& ~IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK
) {
ret = -EINVAL;
goto err_put;
}