Lines Matching refs:retry

52 				struct lpfc_nodelist *ndlp, uint8_t retry);
126 * @retry: number of retries to the command IOCB when it fails.
151 uint16_t cmdSize, uint8_t retry,
304 elsiocb->retry = retry;
953 * the lpfc_els_retry() routine shall be invoked to retry the FLOGI. If
954 * retry has been made (either immediately or delayed with lpfc_els_retry()
956 * If the retry attempt has been given up (possibly reach the maximum
1035 /* Check for retry */
1182 * @retry: number of retries to the command IOCB.
1202 uint8_t retry)
1217 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
1786 /* Check for retry */
1815 * retry shall be attempted by invoking the lpfc_els_retry() routine.
1878 /* Check for retry */
1936 * @retry: number of retries to the command IOCB.
1954 lpfc_issue_els_plogi(struct lpfc_vport *vport, uint32_t did, uint8_t retry)
1974 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did,
2024 * status. If there is error status reported, PRLI retry shall be attempted
2066 /* Check for retry */
2095 * @retry: number of retries to the command IOCB.
2114 uint8_t retry)
2125 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
2347 /* Check for retry */
2384 * @retry: number of retries to the command IOCB.
2402 uint8_t retry)
2413 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
2462 * the lpfc_els_retry() routine will be invoked to retry the LOGO command.
2515 /* Check for retry */
2581 * @retry: number of retries to the command IOCB.
2599 uint8_t retry)
2617 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
2714 * @retry: number of retries to the command IOCB.
2733 lpfc_issue_els_scr(struct lpfc_vport *vport, uint32_t nportid, uint8_t retry)
2759 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
2808 * @retry: number of retries to the command IOCB.
2827 lpfc_issue_els_farpr(struct lpfc_vport *vport, uint32_t nportid, uint8_t retry)
2856 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
2915 * lpfc_cancel_retry_delay_tmo - Cancel the timer with delayed iocb-cmd retry
2919 * This routine cancels the timer with a delayed IOCB-command retry for
2921 * removes the ELS retry event if it presents. In addition, if the
2941 /* Decrement nlp reference count held for the delayed retry */
2974 * whether there is any pending ELS retry event(s) with the node. If not, it
3018 * function according to the delayed ELS command to retry the command.
3025 uint32_t cmd, retry;
3044 retry = ndlp->nlp_retry;
3049 lpfc_issue_els_flogi(vport, ndlp, retry);
3052 if (!lpfc_issue_els_plogi(vport, ndlp->nlp_DID, retry)) {
3058 if (!lpfc_issue_els_adisc(vport, ndlp, retry)) {
3064 if (!lpfc_issue_els_prli(vport, ndlp, retry)) {
3070 if (!lpfc_issue_els_logo(vport, ndlp, retry)) {
3077 lpfc_issue_els_fdisc(vport, ndlp, retry);
3084 * lpfc_els_retry - Make retry decision on an els command iocb
3089 * This routine makes a retry decision on an ELS command IOCB, which has
3093 * returned error status, it makes the decision whether a retry shall be
3094 * issued for the command, and whether a retry shall be made immediately or
3096 * is called to retry the command. In the later case, the ELS command shall
3101 * 0 - No retry of els command is made
3102 * 1 - Immediate or delayed retry of els command is made
3115 int retry = 0, maxretry = lpfc_max_els_tries, delay = 0;
3170 if (cmd == ELS_CMD_PLOGI && cmdiocb->retry == 0)
3172 retry = 1;
3178 "retry:x%x delay:x%x\n",
3179 cmd, cmdiocb->retry, delay);
3180 retry = 1;
3181 /* All command's retry policy */
3183 if (cmdiocb->retry > 2)
3189 retry = 1;
3190 if (cmdiocb->retry > 100)
3197 retry = 1;
3209 retry = 1;
3217 retry = 1;
3225 retry = 1;
3241 retry = 1;
3250 retry = 1;
3257 retry = 1;
3278 /* FDISC retry policy */
3280 if (cmdiocb->retry >= 32)
3283 retry = 1;
3295 retry = 1;
3324 retry = 1;
3329 /* FLOGI retry policy */
3330 retry = 1;
3331 /* retry FLOGI forever */
3333 if (cmdiocb->retry >= 100)
3335 else if (cmdiocb->retry >= 32)
3338 /* retry FDISCs every second up to devloss */
3339 retry = 1;
3344 cmdiocb->retry++;
3345 if (maxretry && (cmdiocb->retry >= maxretry)) {
3347 retry = 0;
3351 retry = 0;
3353 if (retry) {
3358 "2849 Stop retry ELS command "
3361 cmdiocb->retry, delay);
3370 cmd, did, cmdiocb->retry, delay);
3387 ndlp->nlp_retry = cmdiocb->retry;
3409 lpfc_issue_els_flogi(vport, ndlp, cmdiocb->retry);
3412 lpfc_issue_els_fdisc(vport, ndlp, cmdiocb->retry);
3420 lpfc_issue_els_plogi(vport, did, cmdiocb->retry);
3425 lpfc_issue_els_adisc(vport, ndlp, cmdiocb->retry);
3430 lpfc_issue_els_prli(vport, ndlp, cmdiocb->retry);
3435 lpfc_issue_els_logo(vport, ndlp, cmdiocb->retry);
3439 /* No retry ELS command <elsCmd> to remote NPORT <did> */
3442 "0137 No retry ELS command x%x to remote "
3449 "0108 No retry ELS command x%x to remote "
3451 cmd, did, cmdiocb->retry, irsp->ulpStatus,
3928 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
3950 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
3973 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
4060 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
4133 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
4212 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
4318 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
4452 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
5922 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
7354 * lpfc_cancel_all_vport_retry_delay_timer - Cancel all vport retry delay timer
7357 * This routine cancels the retry delay timers to all the vports.
7386 * lpfc_retry_pport_discovery - Start timer to retry FLOGI.
7390 * start a timer to retry FLOGI for the physical port
7399 /* Cancel the all vports retry delay retry timers */
7497 /* Check for retry */
7585 * @retry: number of retries to the command IOCB.
7603 uint8_t retry)
7617 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did,