Whamcloud - gitweb
LU-10391 ptlrpc: pass net num to ptlrpc_uuid_to_connection 37/44637/4
authorMr NeilBrown <neilb@suse.de>
Thu, 8 Jul 2021 00:34:36 +0000 (10:34 +1000)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Sep 2022 02:51:57 +0000 (02:51 +0000)
commita0bdb01ad05b24d2469e715ec2ce7f774d31d2e1
treea200ff673791beb82655df24fd893c9413a0c519
parent37ba07f338293d2496c6ac773fee1b3453189bb1
LU-10391 ptlrpc: pass net num to ptlrpc_uuid_to_connection

Rather than passing a nid to indicate which net to choose,
pass just the net number.  This will make it easier to convert to
'struct lnet_nid'.

Also change ptlrpc_uuid_to_peer() to take the refnet as an explicit
argument, rather than embedding in in the peer pid.

This makes the refnet test more obvious, and removes the (strange)
need to test the address part against zero.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I0650760a59342f5ac245cc14011452e436ef8e4c
Reviewed-on: https://review.whamcloud.com/44637
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lib.c
lustre/ptlrpc/client.c
lustre/ptlrpc/events.c