Whamcloud - gitweb
LU-10391 lnet: use large nids in struct lnet_event
[fs/lustre-release.git] / lustre / target / tgt_handler.c
index 5e97949..ce034a1 100644 (file)
@@ -940,9 +940,9 @@ int tgt_connect_check_sptlrpc(struct ptlrpc_request *req, struct obd_export *exp
                 * NID is on the local node, allow any flavor
                 */
                if ((strcmp(exp->exp_obd->obd_type->typ_name,
-                          LUSTRE_MGS_NAME) == 0) &&
-                    (exp->exp_flvr.sf_rpc == SPTLRPC_FLVR_NULL ||
-                     LNetIsPeerLocal(exp->exp_connection->c_peer.nid)))
+                           LUSTRE_MGS_NAME) == 0) &&
+                   (exp->exp_flvr.sf_rpc == SPTLRPC_FLVR_NULL ||
+                    LNetIsPeerLocal(lnet_nid_to_nid4(&exp->exp_connection->c_peer.nid))))
                        exp->exp_flvr.sf_rpc = SPTLRPC_FLVR_ANY;
 
                if (exp->exp_flvr.sf_rpc != SPTLRPC_FLVR_ANY &&