mgc_conn = class_exp2cliimp(cld->cld_mgcexp)->imp_connection;
/* don't need to get local config */
- if (cld_is_nodemap(cld) && (mgc_conn->c_peer.nid == LNET_NID_LO_0))
+ if (cld_is_nodemap(cld) && LNetIsPeerLocal(mgc_conn->c_peer.nid))
GOTO(out, rc = 0);
/* allocate buffer for bulk transfer.
exp->exp_sp_peer = req->rq_sp_from;
exp->exp_flvr = flvr;
- /* when on mgs, if no restriction is set, or if client
- * is loopback, allow any flavor */
+ /* when on mgs, if no restriction is set, or if the client
+ * 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 ||
- exp->exp_connection->c_peer.nid == LNET_NID_LO_0))
+ LNetIsPeerLocal(exp->exp_connection->c_peer.nid)))
exp->exp_flvr.sf_rpc = SPTLRPC_FLVR_ANY;
if (exp->exp_flvr.sf_rpc != SPTLRPC_FLVR_ANY &&