From 67c64ad36710e2876cd5ccba463b6bfc0ba419f4 Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Sat, 24 Jun 2023 07:12:08 -0500 Subject: [PATCH] LU-18391 lnet: Revert nid hash for gnilnd Using hash_long() method for gnilnd apparently results in performance degradation. It is not understood why this is, but for now revert to the sum-by-multiplication of nid bytes method for gnilnd. Test-Parameters: trivial HPE-bug-id: LUS-11675 Signed-off-by: Chris Horn Change-Id: I781658afb41e4c528d0d6d3aa3f73cbb928b9478 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56771 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Shaun Tancheff Reviewed-by: Petros Koutoupis Reviewed-by: Oleg Drokin --- lnet/lnet/api-ni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index 442cd3b..aaff0d5 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -1569,7 +1569,7 @@ lnet_nid4_cpt_hash(lnet_nid_t nid, unsigned int number) __u16 lnd = LNET_NETTYP(LNET_NIDNET(nid)); unsigned int cpt; - if (lnd == KFILND || lnd == GNILND) { + if (lnd == KFILND) { cpt = hash_long(key, LNET_CPT_BITS); /* NB: The number of CPTs needn't be a power of 2 */ -- 1.8.3.1