linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Loopback prevention support
@ 2015-10-28  0:58 Eli Cohen
       [not found] ` <1445993915-111262-1-git-send-email-eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Cohen @ 2015-10-28  0:58 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	ogerlitz-VPRAkNaXOzVWk0Htik3J/w, eranbe-VPRAkNaXOzVWk0Htik3J/w,
	cl-vYTEC60ixJUAvxtiuMwx3w, Eli Cohen

Hi Doug,

This two patch series adds support for loopback prevention in mlx5_ib for
userspace consumers.

Eli

*** Resending since may have had some problem with my subscription so the
*** patchest did not make it to the rdma list

Eli Cohen (2):
  IB/mlx5: Add debug print to signify if block multicast is used
  IB/mlx5: Publish mlx5 driver support for extended create QP

 drivers/infiniband/hw/mlx5/main.c |    3 ++-
 drivers/infiniband/hw/mlx5/qp.c   |    4 ++++
 2 files changed, 6 insertions(+), 1 deletions(-)

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/2] IB/mlx5: Add debug print to signify if block multicast is used
       [not found] ` <1445993915-111262-1-git-send-email-eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
@ 2015-10-28  0:58   ` Eli Cohen
  2015-10-28  0:58   ` [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP Eli Cohen
  1 sibling, 0 replies; 9+ messages in thread
From: Eli Cohen @ 2015-10-28  0:58 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	ogerlitz-VPRAkNaXOzVWk0Htik3J/w, eranbe-VPRAkNaXOzVWk0Htik3J/w,
	cl-vYTEC60ixJUAvxtiuMwx3w, Eli Cohen

Signed-off-by: Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
 drivers/infiniband/hw/mlx5/qp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
index 6f521a3..b80b2bd 100644
--- a/drivers/infiniband/hw/mlx5/qp.c
+++ b/drivers/infiniband/hw/mlx5/qp.c
@@ -1033,6 +1033,10 @@ static int create_qp_common(struct mlx5_ib_dev *dev, struct ib_pd *pd,
 
 	qp->mqp.event = mlx5_ib_qp_event;
 
+	/* QP related debug prints go here */
+	if (qp->flags & MLX5_IB_QP_BLOCK_MULTICAST_LOOPBACK)
+		mlx5_ib_dbg(dev, "QP 0x%x will block multicast\n", qp->mqp.qpn);
+
 	return 0;
 
 err_create:
-- 
1.7.1

--
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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP
       [not found] ` <1445993915-111262-1-git-send-email-eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  2015-10-28  0:58   ` [PATCH 1/2] IB/mlx5: Add debug print to signify if block multicast is used Eli Cohen
@ 2015-10-28  0:58   ` Eli Cohen
       [not found]     ` <1445993915-111262-3-git-send-email-eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  1 sibling, 1 reply; 9+ messages in thread
From: Eli Cohen @ 2015-10-28  0:58 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	ogerlitz-VPRAkNaXOzVWk0Htik3J/w, eranbe-VPRAkNaXOzVWk0Htik3J/w,
	cl-vYTEC60ixJUAvxtiuMwx3w, Eli Cohen

Signed-off-by: Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
 drivers/infiniband/hw/mlx5/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index f1ccd40..634de84 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -1385,7 +1385,8 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
 		(1ull << IB_USER_VERBS_CMD_CREATE_XSRQ)		|
 		(1ull << IB_USER_VERBS_CMD_OPEN_QP);
 	dev->ib_dev.uverbs_ex_cmd_mask =
-		(1ull << IB_USER_VERBS_EX_CMD_QUERY_DEVICE);
+		(1ull << IB_USER_VERBS_EX_CMD_QUERY_DEVICE)	|
+		(1ull << IB_USER_VERBS_EX_CMD_CREATE_QP);
 
 	dev->ib_dev.query_device	= mlx5_ib_query_device;
 	dev->ib_dev.query_port		= mlx5_ib_query_port;
-- 
1.7.1

--
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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP
       [not found]     ` <1445993915-111262-3-git-send-email-eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
@ 2015-10-28 16:32       ` Jason Gunthorpe
       [not found]         ` <20151028163225.GA14310-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jason Gunthorpe @ 2015-10-28 16:32 UTC (permalink / raw)
  To: Eli Cohen
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	ogerlitz-VPRAkNaXOzVWk0Htik3J/w, eranbe-VPRAkNaXOzVWk0Htik3J/w,
	cl-vYTEC60ixJUAvxtiuMwx3w

On Wed, Oct 28, 2015 at 02:58:35AM +0200, Eli Cohen wrote:
> Signed-off-by: Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>  drivers/infiniband/hw/mlx5/main.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
> index f1ccd40..634de84 100644
> +++ b/drivers/infiniband/hw/mlx5/main.c
> @@ -1385,7 +1385,8 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
>  		(1ull << IB_USER_VERBS_CMD_CREATE_XSRQ)		|
>  		(1ull << IB_USER_VERBS_CMD_OPEN_QP);
>  	dev->ib_dev.uverbs_ex_cmd_mask =
> -		(1ull << IB_USER_VERBS_EX_CMD_QUERY_DEVICE);
> +		(1ull << IB_USER_VERBS_EX_CMD_QUERY_DEVICE)	|
> +		(1ull << IB_USER_VERBS_EX_CMD_CREATE_QP);

Same comment as last time.

http://thread.gmane.org/gmane.linux.drivers.rdma/26110/focus=26163

This still hasn't been fixed.

Jason
--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP
       [not found]         ` <20151028163225.GA14310-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2015-10-28 18:18           ` Eli Cohen
       [not found]             ` <HE1PR05MB1355F2259428B7DB0D096583C5210-eBadYZ65MZ+lkJP6d7MyxNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Cohen @ 2015-10-28 18:18 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA, Or Gerlitz, Eran Ben Elisha,
	cl-vYTEC60ixJUAvxtiuMwx3w

> Same comment as last time.
>
> http://thread.gmane.org/gmane.linux.drivers.rdma/26110/focus=26163
>
>This still hasn't been fixed.

Jason,

The relevant IB core patches have been accepted. Can you elaborate more on
what your comments against this are?

https://github.com/dledford/linux/commit/6d8a74972b7115b41d4d17a4444c026755ca24be


--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP
       [not found]             ` <HE1PR05MB1355F2259428B7DB0D096583C5210-eBadYZ65MZ+lkJP6d7MyxNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2015-10-28 18:24               ` Jason Gunthorpe
       [not found]                 ` <20151028182400.GB26645-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jason Gunthorpe @ 2015-10-28 18:24 UTC (permalink / raw)
  To: Eli Cohen
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA, Or Gerlitz, Eran Ben Elisha,
	cl-vYTEC60ixJUAvxtiuMwx3w

On Wed, Oct 28, 2015 at 06:18:27PM +0000, Eli Cohen wrote:
> > Same comment as last time.
> >
> > http://thread.gmane.org/gmane.linux.drivers.rdma/26110/focus=26163
> >
> >This still hasn't been fixed.
> 
> Jason,
> 
> The relevant IB core patches have been accepted. Can you elaborate more on
> what your comments against this are?

Did you read the above thread?

Don't set uverbs_ex_cmd_mask in drivers.

Jason
--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP
       [not found]                 ` <20151028182400.GB26645-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2015-10-28 18:44                   ` Eli Cohen
       [not found]                     ` <HE1PR05MB1355F83A223671CA59BC940AC5210-eBadYZ65MZ+lkJP6d7MyxNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Cohen @ 2015-10-28 18:44 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA, Or Gerlitz, Eran Ben Elisha,
	cl-vYTEC60ixJUAvxtiuMwx3w

> Did you read the above thread?
>
> Don't set uverbs_ex_cmd_mask in drivers.

But that's not how it is currently. IB core does not set any of the extended verbs flags for all the devices.
--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP
       [not found]                     ` <HE1PR05MB1355F83A223671CA59BC940AC5210-eBadYZ65MZ+lkJP6d7MyxNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2015-10-28 19:19                       ` Jason Gunthorpe
       [not found]                         ` <20151028191955.GA27283-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jason Gunthorpe @ 2015-10-28 19:19 UTC (permalink / raw)
  To: Eli Cohen
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA, Or Gerlitz, Eran Ben Elisha,
	cl-vYTEC60ixJUAvxtiuMwx3w

On Wed, Oct 28, 2015 at 06:44:05PM +0000, Eli Cohen wrote:
> > Did you read the above thread?
> >
> > Don't set uverbs_ex_cmd_mask in drivers.
> 
> But that's not how it is currently. IB core does not set any of the
> extended verbs flags for all the devices.

We agreed it would be fixed as a follow up patch so the timestamp
stuff could move forward. That patch never came, and now it is needed
before more stuff does this wrong.

Jason
--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP
       [not found]                         ` <20151028191955.GA27283-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2015-11-04 19:36                           ` Eli Cohen
  0 siblings, 0 replies; 9+ messages in thread
From: Eli Cohen @ 2015-11-04 19:36 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA, Or Gerlitz, Eran Ben Elisha,
	cl-vYTEC60ixJUAvxtiuMwx3w

Following this email is another one with the fix.

-----Original Message-----
From: Jason Gunthorpe [mailto:jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org] 
Sent: Wednesday, October 28, 2015 2:20 PM
To: Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org; linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>; Eran Ben Elisha <eranbe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>; cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP

On Wed, Oct 28, 2015 at 06:44:05PM +0000, Eli Cohen wrote:
> > Did you read the above thread?
> >
> > Don't set uverbs_ex_cmd_mask in drivers.
> 
> But that's not how it is currently. IB core does not set any of the 
> extended verbs flags for all the devices.

We agreed it would be fixed as a follow up patch so the timestamp stuff could move forward. That patch never came, and now it is needed before more stuff does this wrong.

Jason
--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-11-04 19:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28  0:58 [PATCH 0/2] Loopback prevention support Eli Cohen
     [not found] ` <1445993915-111262-1-git-send-email-eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-28  0:58   ` [PATCH 1/2] IB/mlx5: Add debug print to signify if block multicast is used Eli Cohen
2015-10-28  0:58   ` [PATCH 2/2] IB/mlx5: Publish mlx5 driver support for extended create QP Eli Cohen
     [not found]     ` <1445993915-111262-3-git-send-email-eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-28 16:32       ` Jason Gunthorpe
     [not found]         ` <20151028163225.GA14310-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-10-28 18:18           ` Eli Cohen
     [not found]             ` <HE1PR05MB1355F2259428B7DB0D096583C5210-eBadYZ65MZ+lkJP6d7MyxNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-10-28 18:24               ` Jason Gunthorpe
     [not found]                 ` <20151028182400.GB26645-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-10-28 18:44                   ` Eli Cohen
     [not found]                     ` <HE1PR05MB1355F83A223671CA59BC940AC5210-eBadYZ65MZ+lkJP6d7MyxNqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-10-28 19:19                       ` Jason Gunthorpe
     [not found]                         ` <20151028191955.GA27283-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-11-04 19:36                           ` Eli Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).