Whamcloud - gitweb
LU-10391 lnet: separate lnet_hdr in msg from that in lnd.
[fs/lustre-release.git] / lnet / lnet / net_fault.c
index efe69d9..a4fdf97 100644 (file)
@@ -429,9 +429,9 @@ lnet_drop_rule_match(struct lnet_hdr *hdr,
                     lnet_nid_t local_nid,
                     enum lnet_msg_hstatus *hstatus)
 {
-       lnet_nid_t src = le64_to_cpu(hdr->src_nid);
-       lnet_nid_t dst = le64_to_cpu(hdr->dest_nid);
-       unsigned int typ = le32_to_cpu(hdr->type);
+       lnet_nid_t src = hdr->src_nid;
+       lnet_nid_t dst = hdr->dest_nid;
+       unsigned int typ = hdr->type;
        struct lnet_drop_rule *rule;
        unsigned int ptl = -1;
        bool drop = false;
@@ -605,9 +605,9 @@ bool
 lnet_delay_rule_match_locked(struct lnet_hdr *hdr, struct lnet_msg *msg)
 {
        struct lnet_delay_rule  *rule;
-       lnet_nid_t               src = le64_to_cpu(hdr->src_nid);
-       lnet_nid_t               dst = le64_to_cpu(hdr->dest_nid);
-       unsigned int             typ = le32_to_cpu(hdr->type);
+       lnet_nid_t               src = hdr->src_nid;
+       lnet_nid_t               dst = hdr->dest_nid;
+       unsigned int             typ = hdr->type;
        unsigned int             ptl = -1;
 
        /* NB: called with hold of lnet_net_lock */