Whamcloud - gitweb
LU-7734 lnet: set primary NID in ptlrpc_connection_get()
authorOlaf Weber <olaf@sgi.com>
Thu, 4 Aug 2016 11:27:01 +0000 (13:27 +0200)
committerAmir Shehata <amir.shehata@intel.com>
Wed, 25 Jan 2017 03:10:17 +0000 (19:10 -0800)
commitb38eb0b6c483e40a6112d02cffeed53c3ee5a743
treeae0c2138cdd69c886a7c1df295a6fa3de4b06e15
parentf285d82145eb2d0703600f744e7bfcdb5eaae87f
LU-7734 lnet: set primary NID in ptlrpc_connection_get()

Set the NID in ptlrpc_connection::c_peer to the primary NID of a peer.
This ensures that regardless of the NID used to start a connection, we
consistently use the same NID (the primary NID) to identify a peer. It
also means that PtlRPC will not create multiple connections to a peer.

The primary NID is obtained by calling LNetPrimaryNID(), an addition
to the exported symbols of the LNet module. The name was chosen to
match the existing naming pattern.

Test-Parameters: trivial
Signed-off-by: Olaf Weber <olaf@sgi.com>
Change-Id: Idc0605d17a58678b634db246221028cf81ad2407
Reviewed-on: http://review.whamcloud.com/21710
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Tested-by: Amir Shehata <amir.shehata@intel.com>
lnet/include/lnet/api.h
lnet/lnet/peer.c
lustre/ptlrpc/connection.c