[PATCH 0/3] Add missing neigh_release, fix ntuple calculation for IPv6

2014-09-23 Thread Hariprasad Shenai
This patch series adds missing neigh release in find_route function and also takes IPv6 into consideration in best_mtu and set_emss function. It also fixes ntuple calculation for IPv6 for T5 adapter. The patches series is created against 'infiniband' tree. And includes patches on iw_cxgb4 driver.

[PATCH 2/3] RDMA/cxgb4: Add missing neigh_release in find_route

2014-09-23 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai --- drivers/infiniband/hw/cxgb4/cm.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 2ca9ec8..2ee9892 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/inf

[PATCH 3/3] RDMA/cxgb4: Fix ntuple calculation for ipv6 and remove duplicate line

2014-09-23 Thread Hariprasad Shenai
This fixes ntuple calculation for IPv6 active open request for T5 adapter. And also removes an duplicate line which got added in commit 92e7ae71726c ("iw_cxgb4: Choose appropriate hw mtu index and ISS for iWARP connections") Signed-off-by: Hariprasad Shenai --- drivers/infiniband/hw/cxgb4/cm.c |

[PATCH 1/3] RDMA/cxgb4: Take IPv6 into account for best_mtu and set_emss

2014-09-23 Thread Hariprasad Shenai
best_mtu and set_emss was not considering ipv6 header for ipv6 case Signed-off-by: Hariprasad Shenai --- drivers/infiniband/hw/cxgb4/cm.c | 24 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb

[PATCH V3] svcrdma: advertise the correct max payload

2014-09-23 Thread Steve Wise
Svcrdma currently advertises 1MB, which is too large. The correct value is the minimum of RPCSVC_MAXPAYLOAD and the max scatter-gather allowed in an NFSRDMA IO chunk * the host page size. This bug is usually benign because the Linux X64 NFSRDMA client correctly limits the payload size to the corre

[GIT PULL] please pull infiniband.git

2014-09-23 Thread Roland Dreier
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git tags/rdma-for-linus This is later and bigger than I would like, and the blame is all on me: I got very busy with other stuff for a few weeks during the 3.17 cycle, and didn't prepare this tree as

Re: [PATCH 7/8] IB/srp: Separate target and channel variables

2014-09-23 Thread Bart Van Assche
On 23/09/2014 10:07, Sagi Grimberg wrote: On 9/19/2014 3:59 PM, Bart Van Assche wrote: @@ -3047,24 +3098,28 @@ static ssize_t srp_create_target(struct device *dev, INIT_WORK(&target->tl_err_work, srp_tl_err_work); INIT_WORK(&target->remove_work, srp_remove_work); spin_lock_ini

Re: [PATCH V2] svcrdma: Advertise the correct max payload

2014-09-23 Thread 'J. Bruce Fields'
On Tue, Sep 23, 2014 at 02:53:28PM -0500, Steve Wise wrote: > > > > -Original Message- > > From: 'J. Bruce Fields' [mailto:bfie...@fieldses.org] > > Sent: Tuesday, September 23, 2014 2:48 PM > > To: Steve Wise > > Cc: 'Chuck Lever'; linux-...@vger.kernel.org; linux-rdma@vger.kernel.org >

RE: [PATCH V2] svcrdma: Advertise the correct max payload

2014-09-23 Thread Steve Wise
> -Original Message- > From: 'J. Bruce Fields' [mailto:bfie...@fieldses.org] > Sent: Tuesday, September 23, 2014 2:48 PM > To: Steve Wise > Cc: 'Chuck Lever'; linux-...@vger.kernel.org; linux-rdma@vger.kernel.org > Subject: Re: [PATCH V2] svcrdma: Advertise the correct max payload > > On

Re: [PATCH V2] svcrdma: Advertise the correct max payload

2014-09-23 Thread 'J. Bruce Fields'
On Tue, Sep 23, 2014 at 02:42:34PM -0500, Steve Wise wrote: > > > > diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h > > > b/net/sunrpc/xprtrdma/xprt_rdma.h > > > index c419498..a9cf5c3 100644 > > > --- a/net/sunrpc/xprtrdma/xprt_rdma.h > > > +++ b/net/sunrpc/xprtrdma/xprt_rdma.h > > > @@ -392,4 +392

RE: [PATCH V2] svcrdma: Advertise the correct max payload

2014-09-23 Thread Steve Wise
> > diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h > > b/net/sunrpc/xprtrdma/xprt_rdma.h > > index c419498..a9cf5c3 100644 > > --- a/net/sunrpc/xprtrdma/xprt_rdma.h > > +++ b/net/sunrpc/xprtrdma/xprt_rdma.h > > @@ -392,4 +392,8 @@ extern struct kmem_cache *svc_rdma_ctxt_cachep; > > /* Workqueue cre

Re: [PATCH 8/8] IB/srp: Add multichannel support

2014-09-23 Thread Bart Van Assche
On 23/09/2014 10:32, Sagi Grimberg wrote: On 9/19/2014 4:00 PM, Bart Van Assche wrote: Improve performance by using multiple RDMA/RC channels per SCSI host for communicating with an SRP target. Hey Bart, Since you don't seem to negotiate/declare multichannel with the target, did you test thi

Re: [PATCH 8/8] IB/srp: Add multichannel support

2014-09-23 Thread Sagi Grimberg
On 9/19/2014 4:00 PM, Bart Van Assche wrote: Improve performance by using multiple RDMA/RC channels per SCSI host for communicating with an SRP target. Hey Bart, Since you don't seem to negotiate/declare multichannel with the target, did you test this code with some target implementations oth

Re: [PATCH 7/8] IB/srp: Separate target and channel variables

2014-09-23 Thread Sagi Grimberg
On 9/19/2014 3:59 PM, Bart Van Assche wrote: Changes in this patch: - Move channel variables into a new structure (struct srp_rdma_ch). - cm_id and completion handler context pointer are now of type srp_rdma_ch * insteoad of srp_target_port *. No functionality is changed. Signed-off-by: Bart

RE: [PATCH] IB/core: Fix race condition in ib_uverbs_open_qp

2014-09-23 Thread Hefty, Sean
> --- a/drivers/infiniband/core/uverbs_main.c > +++ b/drivers/infiniband/core/uverbs_main.c > @@ -502,6 +502,10 @@ void ib_uverbs_qp_event_handler(struct ib_event > *event, void *context_ptr) > { > struct ib_uevent_object *uobj; > > + /* for XRC target qp's, check that qp is live */ > +

RE: [PATCH 0/2] RDMA/ocrdma: ocrdma bug fixes

2014-09-23 Thread Devesh Sharma
Hi Roland, Please include this series as well in your ongoing merge activity. -Regards Devesh > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Devesh Sharma > Sent: Friday, August 22, 2014 4:57 PM > To: linux-rdma@vg

[PATCH] IB/core: Fix race condition in ib_uverbs_open_qp

2014-09-23 Thread Or Gerlitz
From: Jack Morgenstein In ib_uverbs_open_qp, the sharable xrc target qp is created as a "pseudo" qp and added to a list of qp's sharing the same physical QP. This is done before the "pseudo" qp is assigned a uobject. There is a race condition here if an async event arrives at the physical qp. If