diff options
author | Steve Wise | 2016-10-26 21:36:47 +0200 |
---|---|---|
committer | Doug Ledford | 2016-12-14 17:38:28 +0100 |
commit | 5f24410408fd093734ce758f2fe3a66fe543de22 (patch) | |
tree | 11bc8d9684f5166d5e449c8189257c30e329cc12 /include/rdma/rdma_cm.h | |
parent | rdma_cm: add rdma_is_consumer_reject() helper function (diff) | |
download | kernel-qcow2-linux-5f24410408fd093734ce758f2fe3a66fe543de22.tar.gz kernel-qcow2-linux-5f24410408fd093734ce758f2fe3a66fe543de22.tar.xz kernel-qcow2-linux-5f24410408fd093734ce758f2fe3a66fe543de22.zip |
rdma_cm: add rdma_consumer_reject_data helper function
rdma_consumer_reject_data() will return the private data pointer
and length if any is available.
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/rdma_cm.h')
-rw-r--r-- | include/rdma/rdma_cm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h index 62039c2fd951..d3968b561f86 100644 --- a/include/rdma/rdma_cm.h +++ b/include/rdma/rdma_cm.h @@ -403,4 +403,14 @@ const char *__attribute_const__ rdma_reject_msg(struct rdma_cm_id *id, */ bool rdma_is_consumer_reject(struct rdma_cm_id *id, int reason); +/** + * rdma_consumer_reject_data - return the consumer reject private data and + * length, if any. + * @id: Communication identifier that received the REJECT event. + * @ev: RDMA CM reject event. + * @data_len: Pointer to the resulting length of the consumer data. + */ +const void *rdma_consumer_reject_data(struct rdma_cm_id *id, + struct rdma_cm_event *ev, u8 *data_len); + #endif /* RDMA_CM_H */ |