Skip to contentSkip to conversation

?Re: RE: infiniband RDMA connection to server is rejected when client reboot

DISCUSSION J.G Yang 2 participants 2 messages Mar 17, 2010 1 message not in the archive InfiniBand

lore
Share & tools
lore

J.G Yang

author
#0 lore raw

eWVzLndoZW4gdGhlIGNsaWVudCByZWJvb3RlZCBhbmQgZmFpbGVkIHRvIGNvbm5lY3QgdGhlIHNl cnZlciwgIHRoZSBldmVudC5zdGF0dXMgaXMgDQonSUJfQ01fUkVKX1NUQUxFX0NPTk4nIC4gT24g dGhlIGNsaWVudCAsd2hlbiBJIGNyZWF0ZWQgYSBRUCB1c2luZyB0aGUgb2xkIHJkbWFfY21faWQg d2hpY2ggIGZhaWxlZCBpbiB0aGUgZmlyc3QgY29ubmVjdGlvbiB0byByZXRyeSBjb25uZWN0aW9u IHRvIHNlcnZlciwgdGhlIGNhbGwgdG8gZnVuY3Rpb24gcmRtYV9jcmVhdGVfcXAoKSByZXR1cm5l ZCAgICAtMjIoLUVJTlZBTCkgYWxsIHRoZSB0aW1lLiBTbyxJIHJlbGVhc2VkIGFsbCB0aGUgcmVz b3VyY2VzICxhbmQgdGhlbiBjcmVhdGVkIGFub3RoZXIgcmRtYV9jbV9pZCByZXR1cm5lZCBieSBm dW5jdGlvbiByZG1hX2NyZWF0ZV9pZCgpIGFuZCB1c2VkIGl0IGZvciBhbm90aGVyIGNvbm5lY3Rp b24gdG8gdGhlIHNlcnZlci4gVGhlIGNvbm5lY3Rpb24gd2FzIHN1Y2Nlc3NmdWwuIEJ1dCB0aGUg c2V2ZXIgc2hvd2VkIHR3byByZG1hX2NtX2lkIHMgdXNlZCBmb3IgY29ubmVjdGlvbi5UaGUgZmlz cnQgb25lIHdhcyB3aGljaCB1c2VkIGJlZm9yZSB0aGUgY2xpZW50IHJlYm9vdGVkIGFuZCBhbmQg dGhlIHNlY29uZCBvbmUgd2FzIHJkbWFfY21faWQgZm9yIHRoZSBjdXJyZW50IGNvbm5uZWN0aW9u LiBUaGVuLCBJIHJlYm9vdG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W4uIEVycm9ycyBjb21lIGhlcmUuIFNvbWV0aW1lIHRoaXMNCj4+Y29ubm5l Y3Rpb24gY2FuIGJlIHN1Y2Nlc3NmdWwsIGFuZCBmYWlscyBvdGhlcnRpbWUuIFdoZW4gaXQgZmFp bHMsdGhlIGNsaWVudA0KPj5yZWNlaXZlcyBSRE1BX0NNX0VWRU5UX1JFSkVDVEVEIGV2ZW50LGFu ZCB0aGUgc2VydmVyIGRvZXMndCByZWNlaXZlZA0KPj5SRE1BX0NNX0VWRU5UX0NPTk5FQ1RfUkVR VUVTVCBldmVudCBhcyB0aGUgc3VjY2Vzc2Z1bCBjb25uZWN0aW9uLg0KPj5JIGRvbid0IGhvdyB0 aGlzIGhhcHBlbnMuQ2FuIHNvbWVvbmUgaGVscCBtZSA/VGhhbmtzIQ0KPg0KPlRoZSBzZXJ2ZXIg c2lkZSBtYXkgYmUgcmVqZWN0aW5nIHRoZSBjb25uZWN0aW9uIHJlcXVlc3QgYXMgYSBkdXBsaWNh dGUuICBUaGUNCj5ldmVudC5zdGF0dXMgbWF5IHByb3ZpZGUgc29tZSBhZGRpdGlvbmFsIGluc2ln aHQuICBJdCBzaG91bGQgY29udGFpbiBvbmUgb2YgdGhlDQo+ZW51bSBpYl9jbV9yZWpfcmVhc29u IHZhbHVlcyBnaXZlbiBpbiBpYl9jbS5oIChhc3N1bWluZyB0aGF0IHlvdSdyZSB1c2luZyBJQiBh bmQNCj5ub3QgaVdhcnApLiAgSWYgdGhlIHN0YXR1cyBpcyAnSUJfQ01fUkVKX1NUQUxFX0NPTk4n ICg9IDEwKSwgdGhlbiByZXRyeWluZyB0aGUNCj5jb25uZWN0aW9uIHdpdGggYSBuZXcgUVAgbWF5 IHN1Y2NlZWQuDQo+DQo+LSBTZWFuDQoNCg0KDQo=

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): MAILt3HvoFOAmEaJswF0004deaa-hsiVscFSYOJrXVYLWy1CrgC/[email protected]

#2 lore raw
Quoted 5 lines

yes.when the client rebooted and failed to connect the server, the event.status is
'IB_CM_REJ_STALE_CONN' . On the client ,when I created a QP using the old rdma_cm_id which failed in the first connection to retry connection to server,
the call to function rdma_create_qp() returned -22(-EINVAL) all the time.

This is expected. The rdma_cm_id can only be used for a single connection. The underlying state machine does not reset.

Quoted 4 lines

My question: Are there some methods that the server can be notifed when it lose the connection such as the client's reboot?So the server can destroy the rdma_cm_id and pass the stale connection check. The client needs no retry for new rdma_cm_id after reboot.

If the server isn't using the connections, then they could stay around. I don't know how you can avoid this for a general case short of keep-alive messages.

For actual stale connections, it would require a kernel change, but the kernel detects this and _could_ force a disconnect on the local side.

- Sean

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html