Commit ddf9529b authored by Eran Ben Elisha's avatar Eran Ben Elisha Committed by Doug Ledford

IB/core: Allow setting create flags in QP init attribute

Allow setting IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK at create_flags in
ib_uverbs_create_qp_ex.
Signed-off-by: default avatarEran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: default avatarHaggai Eran <haggaie@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 6d8a7497
...@@ -1843,7 +1843,7 @@ static int create_qp(struct ib_uverbs_file *file, ...@@ -1843,7 +1843,7 @@ static int create_qp(struct ib_uverbs_file *file,
sizeof(cmd->create_flags)) sizeof(cmd->create_flags))
attr.create_flags = 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; ret = -EINVAL;
goto err_put; goto err_put;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment