rdma_reject
Rejects a connection request.
Syntax
#include <rdma/rdma_cma.h>
int rdma_reject(struct rdma_cm_id *id, const void *private_data, uint8_t private_data_len);
Description
The rdma_reject function is run from the listening side of the connection to reject a connection lookup request.
Note: You can run the rdma_reject operation
after receiving a connection request event. If the underlying RDMA
transport function supports private data in the rejection message,
the specified data is passed to the remote side.
Parameters
Item | Description |
---|---|
id | Specifies the connection identifier that is associated with the request. |
private_data | Specifies the optional private data to send with the rejection message. |
private_data_len | Specifies the size of the private_data parameter that can be sent, in bytes. |
Return Values
The rdma_reject function returns 0 on success, or -1 on error. If an error occurs, errno indicates the reason for failure.