RDMA/cma: Allow user to restrict listens to bound address family
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / rdma / rdma_cm.h
index 51988f8081812f8c0f55f2bae2ac03110a05eb29..ad3a3142383af96774227410ae8da9b801abe2aa 100644 (file)
@@ -357,4 +357,14 @@ void rdma_set_service_type(struct rdma_cm_id *id, int tos);
  */
 int rdma_set_reuseaddr(struct rdma_cm_id *id, int reuse);
 
+/**
+ * rdma_set_afonly - Specify that listens are restricted to the
+ *    bound address family only.
+ * @id: Communication identifer to configure.
+ * @afonly: Value indicating if listens are restricted.
+ *
+ * Must be set before identifier is in the listening state.
+ */
+int rdma_set_afonly(struct rdma_cm_id *id, int afonly);
+
 #endif /* RDMA_CM_H */