lpfc_attr.c (f72222c74bd642182cc892c99df65cb105c61193) | lpfc_attr.c (a0c87cbdb52467a16343b31251f2722643db603c) |
---|---|
1/******************************************************************* 2 * This file is part of the Emulex Linux Device Driver for * 3 * Fibre Channel Host Bus Adapters. * 4 * Copyright (C) 2004-2009 Emulex. All rights reserved. * 5 * EMULEX and SLI are trademarks of Emulex. * 6 * www.emulex.com * 7 * Portions Copyright (C) 2004-2005 Christoph Hellwig * 8 * * --- 380 unchanged lines hidden (view full) --- 389 390 switch (phba->link_state) { 391 case LPFC_LINK_UNKNOWN: 392 case LPFC_WARM_START: 393 case LPFC_INIT_START: 394 case LPFC_INIT_MBX_CMDS: 395 case LPFC_LINK_DOWN: 396 case LPFC_HBA_ERROR: | 1/******************************************************************* 2 * This file is part of the Emulex Linux Device Driver for * 3 * Fibre Channel Host Bus Adapters. * 4 * Copyright (C) 2004-2009 Emulex. All rights reserved. * 5 * EMULEX and SLI are trademarks of Emulex. * 6 * www.emulex.com * 7 * Portions Copyright (C) 2004-2005 Christoph Hellwig * 8 * * --- 380 unchanged lines hidden (view full) --- 389 390 switch (phba->link_state) { 391 case LPFC_LINK_UNKNOWN: 392 case LPFC_WARM_START: 393 case LPFC_INIT_START: 394 case LPFC_INIT_MBX_CMDS: 395 case LPFC_LINK_DOWN: 396 case LPFC_HBA_ERROR: |
397 len += snprintf(buf + len, PAGE_SIZE-len, "Link Down\n"); | 397 if (phba->hba_flag & LINK_DISABLED) 398 len += snprintf(buf + len, PAGE_SIZE-len, 399 "Link Down - User disabled\n"); 400 else 401 len += snprintf(buf + len, PAGE_SIZE-len, 402 "Link Down\n"); |
398 break; 399 case LPFC_LINK_UP: 400 case LPFC_CLEAR_LA: 401 case LPFC_HBA_READY: 402 len += snprintf(buf + len, PAGE_SIZE-len, "Link Up - "); 403 404 switch (vport->port_state) { 405 case LPFC_LOCAL_CFG_LINK: --- 3846 unchanged lines hidden --- | 403 break; 404 case LPFC_LINK_UP: 405 case LPFC_CLEAR_LA: 406 case LPFC_HBA_READY: 407 len += snprintf(buf + len, PAGE_SIZE-len, "Link Up - "); 408 409 switch (vport->port_state) { 410 case LPFC_LOCAL_CFG_LINK: --- 3846 unchanged lines hidden --- |