Thread (1 message) 1 message, 1 author, 2017-07-07

Re: [PATCH] IB/mlx4: Fix CM REQ retries in paravirt mode

From: Håkon Bugge <hidden>
Date: 2017-07-07 09:03:50

Do I need any additional r-b for this to get in?


Thxs, Håkon
On 26 Jun 2017, at 11:40, jackm [off-list ref] wrote:

Nice catch, Haakon!

-Jack

On Tue, 20 Jun 2017 14:07:50 +0200
Håkon Bugge [off-list ref] wrote:
quoted
CM REQs cannot be successfully retried, because a new pv_cm_id is
created for each request, without checking if one already exists.

By checking if an id exists before creating one, the bug is fixed.

This bug can be provoked by running an RDMA CM user-land application,
but inserting a five seconds delay before the rdma_accept() call on
the passive side. This delay is larger than the default CMA timeout,
and triggers a retry from the active side. The retried REQ will use
another pv_cm_id (the cm_id on the wire). This confuses the CM
protocol and two REJs are sent from the passive side.

Here is an excerpt from ibdump running without the patch:

3.285092       LID: 4 -> LID: 4       SDP 290 CM: ConnectRequest(SDP
Hello) 7.382711       LID: 4 -> LID: 4       SDP 290 CM:
ConnectRequest(SDP Hello) 7.382861       LID: 4 -> LID: 4
InfiniBand 290 CM: ConnectReject 7.387644       LID: 4 -> LID:
4       InfiniBand 290 CM: ConnectReject

and here is the same with bug fix applied:

3.251010       LID: 4 -> LID: 4       SDP 290 CM: ConnectRequest(SDP
Hello) 7.349387       LID: 4 -> LID: 4       SDP 290 CM:
ConnectRequest(SDP Hello) 8.258443       LID: 4 -> LID: 4       SDP
290 CM: ConnectReply(SDP Hello) 8.259890       LID: 4 -> LID: 4
InfiniBand 290 CM: ReadyToUse

Suggested-by: Venkat Venkatsubra <redacted>
Signed-off-by: Håkon Bugge <redacted>
Reported-by: Wei Lin Guay <redacted>
Tested-by: Wei Lin Guay <redacted>
Reviewed-by: Yuval Shaia <redacted>
Acked-by: Jack Morgenstein <redacted>
--
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
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help