Whamcloud - gitweb
LU-18391 lnet: Revert nid hash for gnilnd 71/56771/2
authorChris Horn <chris.horn@hpe.com>
Sat, 24 Jun 2023 12:12:08 +0000 (07:12 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 2 Dec 2024 05:54:31 +0000 (05:54 +0000)
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 <chris.horn@hpe.com>
Change-Id: I781658afb41e4c528d0d6d3aa3f73cbb928b9478
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56771
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c

index 442cd3b..aaff0d5 100644 (file)
@@ -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 */