Whamcloud - gitweb
LU-13642 lnet: Allow IP specification
[fs/lustre-release.git] / lnet / include / lnet / api.h
index 093854b..ca04543 100644 (file)
@@ -75,9 +75,9 @@ int LNetNIFini(void);
  * \see LNetMEAttach
  * @{ */
 int LNetGetId(unsigned int index, struct lnet_processid *id);
-int LNetDist(lnet_nid_t nid, lnet_nid_t *srcnid, __u32 *order);
+int LNetDist(struct lnet_nid *nid, struct lnet_nid *srcnid, __u32 *order);
 void LNetPrimaryNID(struct lnet_nid *nid);
-bool LNetIsPeerLocal(lnet_nid_t nid);
+bool LNetIsPeerLocal(struct lnet_nid *nid);
 
 /** @} lnet_addr */
 
@@ -135,22 +135,22 @@ void lnet_assert_handler_unused(lnet_handler_t handler);
  * The LNet API provides two data movement operations: LNetPut()
  * and LNetGet().
  * @{ */
-int LNetPut(lnet_nid_t       self,
-           struct lnet_handle_md md_in,
-           enum lnet_ack_req   ack_req_in,
-           struct lnet_process_id target_in,
-           unsigned int      portal_in,
-           __u64             match_bits_in,
-           unsigned int      offset_in,
-           __u64             hdr_data_in);
-
-int LNetGet(lnet_nid_t       self,
-           struct lnet_handle_md md_in,
-           struct lnet_process_id target_in,
-           unsigned int      portal_in,
-           __u64             match_bits_in,
-           unsigned int      offset_in,
-           bool              recovery);
+int LNetPut(struct lnet_nid            *self,
+           struct lnet_handle_md       md_in,
+           enum lnet_ack_req           ack_req_in,
+           struct lnet_processid       *target_in,
+           unsigned int                portal_in,
+           __u64                       match_bits_in,
+           unsigned int                offset_in,
+           __u64                       hdr_data_in);
+
+int LNetGet(struct lnet_nid            *self,
+           struct lnet_handle_md       md_in,
+           struct lnet_processid       *target_in,
+           unsigned int                portal_in,
+           __u64                       match_bits_in,
+           unsigned int                offset_in,
+           bool                        recovery);
 /** @} lnet_data */