[lustre-devel] [PATCH 01/33] lnet: set msg field for lnet message header
James Simmons <[email protected]> Sun, 2 Feb 2025 15:46:01 -0500
| Newsgroups | org.lustre.lists.lustre-devel |
|---|---|
| Message-ID | <[email protected]> |
During testing messages sent for larger NID setups was missing
the actual message. Fill in the header msg field to properly
send the total message.
Fixes: 2c91699fb0b ("lnet: socklnd: add hello message version 4")
WC-bug-id: https://jira.whamcloud.com/browse/LU-10391
Lustre-commit: 562865630e67afb06 ("LU-10391 lnet: set msg field for lnet message header")
Signed-off-by: James Simmons <[email protected]>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50716
Reviewed-by: Frank Sehr <[email protected]>
Reviewed-by: Serguei Smirnov <[email protected]>
Reviewed-by: Oleg Drokin <[email protected]>
---
include/linux/lnet/lib-lnet.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/lnet/lib-lnet.h b/include/linux/lnet/lib-lnet.h
index 4aa1e5c91948..84bb3f2966a7 100644
--- a/include/linux/lnet/lib-lnet.h
+++ b/include/linux/lnet/lib-lnet.h
@@ -519,6 +519,8 @@ static inline void lnet_hdr_from_nid16(struct lnet_hdr *hdr,
hdr->src_pid = le32_to_cpu(hdr16->src_pid);
hdr->type = le32_to_cpu(hdr16->type);
hdr->payload_length = le32_to_cpu(hdr16->payload_length);
+
+ hdr->msg = hdr16->msg;
}
static inline void lnet_hdr_to_nid16(const struct lnet_hdr *hdr,
@@ -532,6 +534,8 @@ static inline void lnet_hdr_to_nid16(const struct lnet_hdr *hdr,
hdr16->src_pid = cpu_to_le32(hdr->src_pid);
hdr16->type = cpu_to_le32(hdr->type);
hdr16->payload_length = cpu_to_le32(hdr->payload_length);
+
+ hdr16->msg = hdr->msg;
}
extern struct lnet_lnd the_lolnd;
--
2.39.3
_______________________________________________
lustre-devel mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org