-
- spin_lock(&lp->lp_lock);
- lp_state = lp->lp_state;
-
- /* only handle replies if discovery is disabled. */
- if (!lnet_is_discovery_disabled_locked(lp)) {
- spin_unlock(&lp->lp_lock);
- return;
- }
-
- spin_unlock(&lp->lp_lock);
-
- if (lp_state & LNET_PEER_PING_FAILED ||
- pbuf->pb_info.pi_features & LNET_PING_FEAT_RTE_DISABLED) {
- CDEBUG(D_NET, "Set routes down for gw %s because %s %d\n",
- libcfs_nidstr(&lp->lp_primary_nid),
- lp_state & LNET_PEER_PING_FAILED ? "ping failed" :
- "route feature is disabled", lp->lp_ping_error);
- /* If the ping failed or the peer has routing disabled then
- * mark the routes served by this peer down
- */
+ if (pbuf->pb_info.pi_features & LNET_PING_FEAT_RTE_DISABLED) {
+ CERROR("Peer %s is being used as a gateway but routing feature is not turned on\n",
+ libcfs_nidstr(&lp->lp_primary_nid));