Whamcloud - gitweb
LU-9480 lnet: add LNET_PEER_CONFIGURED flag 83/25783/23
authorOlaf Weber <olaf@sgi.com>
Fri, 27 Jan 2017 15:25:02 +0000 (16:25 +0100)
committerAmir Shehata <amir.shehata@intel.com>
Tue, 22 Aug 2017 16:24:47 +0000 (16:24 +0000)
commit1dfe6a018e7104d74b5578a47cda7b40a01538c2
tree967e6c478436f436cd04261c3a584cf566058342
parentbca194555ae420172d7fb4b8598635296c545890
LU-9480 lnet: add LNET_PEER_CONFIGURED flag

Add the LNET_PEER_CONFIGURED flag, which indicates that a peer
has been configured by DLC. This is used to enforce that only
DLC can modify such a peer.

This includes some further refactoring of the code that creates
or modifies peers to ensure that the flag is properly passed
through, set, and cleared.

Test-Parameters: trivial
Signed-off-by: Olaf Weber <olaf@sgi.com>
Change-Id: I647116ec19bc2f577732a02bf8efb52dad48a391
Reviewed-on: https://review.whamcloud.com/25783
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Tested-by: Amir Shehata <amir.shehata@intel.com>
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/lnet/peer.c