Whamcloud - gitweb
LU-12514 LNet: get entropy from nid when nid set. 59/47159/2
authorMr. NeilBrown <neilb@suse.de>
Wed, 27 Apr 2022 18:33:57 +0000 (14:33 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 05:59:13 +0000 (05:59 +0000)
commitab0a6a9a066a7b175ff48b9b679ba0fb59416f9b
treef10bc1d91222078c617d9cb76e30972f7185538d
parentbd1c8aa7e39d418b1eaefa5dfb47a479e24b7c36
LU-12514 LNet: get entropy from nid when nid set.

When the 'lustre' module is loaded, it gets a list of
net devices and uses the node ids to  add entropy
to the prng.  This means that the network interfaces need
to be configured before the module is loaded, which prevents
the module from being compiled into a monolithic kernel.

So move this entropy addition to the moment when
the interface is imported to LNet and the node id is first known.

Linux-commit: 9f0e4c2b823b0cf5744a448d3b23cd618b86db41

Change-Id: I1c9b4f9a5c01de5b14188ccd9330b51eeafd43ac
Signed-off-by: Mr. NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-on: https://review.whamcloud.com/47159
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c
lustre/llite/super25.c