On 15/10/2015 14:44, Eran Ben Elisha wrote: > Allow setting IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK at create_flags in > ib_uverbs_create_qp_ex. > > Signed-off-by: Eran Ben Elisha <[email protected]> > --- > drivers/infiniband/core/uverbs_cmd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/infiniband/core/uverbs_cmd.c > b/drivers/infiniband/core/uverbs_cmd.c > index e795d59..e9bafa3 100644 > --- 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; > } >
FWIW Reviewed-by: Haggai Eran <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
