]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/rdma/rdma_cm.h
rdma_cm: add rdma_is_consumer_reject() helper function
[linux.git] / include / rdma / rdma_cm.h
index f11a768be06ba97cb5545096b144db75e11197fe..62039c2fd9519277b7e33273b31c1b87cc95272e 100644 (file)
@@ -395,5 +395,12 @@ __be64 rdma_get_service_id(struct rdma_cm_id *id, struct sockaddr *addr);
  */
 const char *__attribute_const__ rdma_reject_msg(struct rdma_cm_id *id,
                                                int reason);
+/**
+ * rdma_is_consumer_reject - return true if the consumer rejected the connect
+ *                           request.
+ * @id: Communication identifier that received the REJECT event.
+ * @reason: Value returned in the REJECT event status field.
+ */
+bool rdma_is_consumer_reject(struct rdma_cm_id *id, int reason);
 
 #endif /* RDMA_CM_H */