* broken support for UC in rdma_cm
@ 2010-03-15 11:12 Eli Cohen
[not found] ` <20100315111228.GC23358-8YAHvHwT2UEvbXDkjdHOrw/a8Rv0c6iv@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Eli Cohen @ 2010-03-15 11:12 UTC (permalink / raw)
To: Sean Hefty, Roland Dreier; +Cc: Linux RDMA list, ewg
We got failing tests in our regression that use UC transport from
userspace. Looking at cma_connect_ib(), I see that it uses IB_QPT_RC
in the CM request instead of using whatever the transport type of the
requesting QP. There is no easy way to retrieve that information too
since the QP is created in userspace. We do have the QP number. One
way to address this problem is to have an API that returns a pointer
to struct ib_qp given the ib device and the QP number. Another way
would be to pass qp_type through the call to rdma_init_qp_attr().
Thoughts?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: broken support for UC in rdma_cm
[not found] ` <20100315111228.GC23358-8YAHvHwT2UEvbXDkjdHOrw/a8Rv0c6iv@public.gmane.org>
@ 2010-03-15 13:45 ` Eli Cohen
[not found] ` <20100315134527.GA31210-8YAHvHwT2UEvbXDkjdHOrw/a8Rv0c6iv@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Eli Cohen @ 2010-03-15 13:45 UTC (permalink / raw)
To: Sean Hefty, Roland Dreier; +Cc: Linux RDMA list, ewg
I just noticed that Vlad already opened a bugzilla bug (1874) on this.
I quote Sean's response:
RDMA CM supports UD and RC QPs (port spaces UDP/TCP) only. Support
for UC QPs should come from another port space.
This makes sense to me. Still we need to address the issues I raised
below. Sean, are you going to fix this?
On Mon, Mar 15, 2010 at 01:12:28PM +0200, Eli Cohen wrote:
> We got failing tests in our regression that use UC transport from
> userspace. Looking at cma_connect_ib(), I see that it uses IB_QPT_RC
> in the CM request instead of using whatever the transport type of the
> requesting QP. There is no easy way to retrieve that information too
> since the QP is created in userspace. We do have the QP number. One
> way to address this problem is to have an API that returns a pointer
> to struct ib_qp given the ib device and the QP number. Another way
> would be to pass qp_type through the call to rdma_init_qp_attr().
> Thoughts?
--
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] 4+ messages in thread
* RE: broken support for UC in rdma_cm
[not found] ` <20100315134527.GA31210-8YAHvHwT2UEvbXDkjdHOrw/a8Rv0c6iv@public.gmane.org>
@ 2010-03-15 15:38 ` Sean Hefty
[not found] ` <7E151C5823FF4048B15DCA15845BB0EB-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Sean Hefty @ 2010-03-15 15:38 UTC (permalink / raw)
To: 'Eli Cohen', Roland Dreier; +Cc: Linux RDMA list, ewg
>I just noticed that Vlad already opened a bugzilla bug (1874) on this.
>I quote Sean's response:
>
>RDMA CM supports UD and RC QPs (port spaces UDP/TCP) only. Support
>for UC QPs should come from another port space.
>
>This makes sense to me. Still we need to address the issues I raised
>below. Sean, are you going to fix this?
This is really a new feature request, which I may not have time to address. It
depends on the scope of the changes that are needed.
If both sides try using UC QPs, do you know what specific setting causes the
connection to fail?
- Sean
--
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] 4+ messages in thread
* Re: broken support for UC in rdma_cm
[not found] ` <7E151C5823FF4048B15DCA15845BB0EB-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
@ 2010-03-15 18:48 ` Eli Cohen
0 siblings, 0 replies; 4+ messages in thread
From: Eli Cohen @ 2010-03-15 18:48 UTC (permalink / raw)
To: Sean Hefty; +Cc: Roland Dreier, Linux RDMA list, ewg
On Mon, Mar 15, 2010 at 08:38:00AM -0700, Sean Hefty wrote:
>
> This is really a new feature request, which I may not have time to address. It
> depends on the scope of the changes that are needed.
>
> If both sides try using UC QPs, do you know what specific setting causes the
> connection to fail?
The actual failure is to modify the QP from init to rtr since the
attribute mask sets IB_QP_MAX_DEST_RD_ATOMIC and IB_QP_MIN_RNR_TIMER
which are invalid attributes in UC. The flags are set in
cm_init_qp_rtr_attr() since the transport is IB_QPT_RC.
--
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] 4+ messages in thread
end of thread, other threads:[~2010-03-15 18:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-15 11:12 broken support for UC in rdma_cm Eli Cohen
[not found] ` <20100315111228.GC23358-8YAHvHwT2UEvbXDkjdHOrw/a8Rv0c6iv@public.gmane.org>
2010-03-15 13:45 ` Eli Cohen
[not found] ` <20100315134527.GA31210-8YAHvHwT2UEvbXDkjdHOrw/a8Rv0c6iv@public.gmane.org>
2010-03-15 15:38 ` Sean Hefty
[not found] ` <7E151C5823FF4048B15DCA15845BB0EB-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2010-03-15 18:48 ` Eli Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox