Whamcloud - gitweb
LU-7734 lnet: add LNET_PEER_CONFIGURED flag 35/21535/9
authorOlaf Weber <olaf@sgi.com>
Fri, 27 Jan 2017 15:25:02 +0000 (16:25 +0100)
committerOlaf Weber <olaf@sgi.com>
Fri, 27 Jan 2017 15:41:35 +0000 (16:41 +0100)
commit3d74bda2e6361e2569f7798319a7cee9abd316dc
treef037072573444bf80709cb0e0fdd7152ef233315
parentd1f76f3c0232e497cb40534726d6c61c9611e131
LU-7734 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: Ie08723fab446de7757e279cbda7e5d56e136a4a0
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/lnet/peer.c