[lustre-devel] [PATCH 01/33] lnet: set msg field for lnet message header
James Simmons
jsimmons at infradead.org
Sun Feb 2 12:46:01 PST 2025
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 <jsimmons at infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50716
Reviewed-by: Frank Sehr <fsehr at whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov at whamcloud.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
---
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
More information about the lustre-devel
mailing list