From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haggai Eran Subject: Re: [PATCH v2 for-next 2/7] IB/core: Allow setting create flags in QP init attribute Date: Wed, 21 Oct 2015 11:46:03 +0300 Message-ID: <562750CB.6020608@mellanox.com> References: <1444909482-17113-1-git-send-email-eranbe@mellanox.com> <1444909482-17113-3-git-send-email-eranbe@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1444909482-17113-3-git-send-email-eranbe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Eran Ben Elisha , Doug Ledford Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Or Gerlitz , Christoph Lameter List-Id: linux-rdma@vger.kernel.org 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 > --- > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html