Lines Matching refs:retry

56 				struct lpfc_nodelist *ndlp, uint8_t retry);
139 * @retry: number of retries to the command when it fails.
164 u16 cmd_size, u8 retry,
284 elsiocb->retry = retry;
927 * the lpfc_els_retry() routine shall be invoked to retry the FLOGI. If
928 * retry has been made (either immediately or delayed with lpfc_els_retry()
930 * If the retry attempt has been given up (possibly reach the maximum
1025 /* Check for retry */
1271 * @retry: number of retries to the command IOCB.
1290 uint8_t retry)
1304 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
1964 /* Check for retry */
1994 * retry shall be attempted by invoking the lpfc_els_retry() routine.
2068 /* Check for retry */
2176 * @retry: number of retries to the command IOCB.
2193 lpfc_issue_els_plogi(struct lpfc_vport *vport, uint32_t did, uint8_t retry)
2228 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did,
2309 * status. If there is error status reported, PRLI retry shall be attempted
2359 /* Check for retry */
2450 * @retry: number of retries to the command IOCB.
2468 uint8_t retry)
2528 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
2838 /* Check for retry */
2890 * @retry: number of retries to the command IOCB.
2907 uint8_t retry)
2917 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
3033 * discovery. The PLOGI will retry.
3124 * @retry: number of retries to the command IOCB.
3143 uint8_t retry)
3159 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
3390 iotag, ulp_status, ulp_word4, tmo, cmdiocb->retry);
3401 /* Only 1 retry for ELS Timeout only */
3405 cmdiocb->retry++;
3406 if (cmdiocb->retry <= 1) {
3409 lpfc_issue_els_scr(vport, cmdiocb->retry);
3412 lpfc_issue_els_edc(vport, cmdiocb->retry);
3415 lpfc_issue_els_rdf(vport, cmdiocb->retry);
3472 * @retry: retry counter for the command IOCB.
3490 lpfc_issue_els_scr(struct lpfc_vport *vport, uint8_t retry)
3509 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
3563 * @retry: number of retries to the command IOCB.
3579 lpfc_issue_els_rscn(struct lpfc_vport *vport, uint8_t retry)
3615 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
3660 * @retry: number of retries to the command IOCB.
3678 lpfc_issue_els_farpr(struct lpfc_vport *vport, uint32_t nportid, uint8_t retry)
3700 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
3761 * @retry: retry counter for the command IOCB.
3775 lpfc_issue_els_rdf(struct lpfc_vport *vport, uint8_t retry)
3798 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
4251 * @retry: retry counter for the command iocb.
4271 lpfc_issue_els_edc(struct lpfc_vport *vport, uint8_t retry)
4301 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
4358 * lpfc_cancel_retry_delay_tmo - Cancel the timer with delayed iocb-cmd retry
4362 * This routine cancels the timer with a delayed IOCB-command retry for
4364 * removes the ELS retry event if it presents. In addition, if the
4384 /* Decrement nlp reference count held for the delayed retry */
4417 * whether there is any pending ELS retry event(s) with the node. If not, it
4461 * function according to the delayed ELS command to retry the command.
4467 uint32_t cmd, retry;
4486 retry = ndlp->nlp_retry;
4491 lpfc_issue_els_flogi(vport, ndlp, retry);
4494 if (!lpfc_issue_els_plogi(vport, ndlp->nlp_DID, retry)) {
4500 if (!lpfc_issue_els_adisc(vport, ndlp, retry)) {
4507 if (!lpfc_issue_els_prli(vport, ndlp, retry)) {
4513 if (!lpfc_issue_els_logo(vport, ndlp, retry)) {
4520 lpfc_issue_els_fdisc(vport, ndlp, retry);
4583 * lpfc_els_retry - Make retry decision on an els command iocb
4588 * This routine makes a retry decision on an ELS command IOCB, which has
4592 * returned error status, it makes the decision whether a retry shall be
4593 * issued for the command, and whether a retry shall be made immediately or
4595 * is called to retry the command. In the later case, the ELS command shall
4600 * 0 - No retry of els command is made
4601 * 1 - Immediate or delayed retry of els command is made
4613 int retry = 0, maxretry = lpfc_max_els_tries, delay = 0;
4661 if (cmd == ELS_CMD_PLOGI && cmdiocb->retry == 0)
4663 retry = 1;
4669 "retry:x%x delay:x%x\n",
4670 cmd, cmdiocb->retry, delay);
4671 retry = 1;
4672 /* All command's retry policy */
4674 if (cmdiocb->retry > 2)
4680 retry = 1;
4681 if (cmdiocb->retry > 100)
4688 retry = 1;
4702 * some unexpected state change. Don't retry.
4705 retry = 0;
4708 retry = 1;
4714 (cmdiocb->retry + 1) == maxretry) {
4719 retry = 1;
4727 /* No retry if state change */
4731 retry = 1;
4741 retry = 1;
4749 retry = 1;
4769 retry = 0;
4779 * isn't really supported, don't retry and cause
4798 retry = 1;
4802 /* These explanation codes get no retry. */
4808 /* Limit the delay and retry action to a limited
4810 * a retry is not expected.
4817 retry = 1;
4842 /* FDISC retry policy */
4844 if (cmdiocb->retry >= 32)
4847 retry = 1;
4859 retry = 1;
4864 retry = 1;
4923 retry = 1;
4931 retry = 1;
4936 /* FLOGI retry policy */
4937 retry = 1;
4938 /* retry FLOGI forever */
4944 if (cmdiocb->retry >= 100)
4946 else if (cmdiocb->retry >= 32)
4950 /* retry FDISCs every second up to devloss */
4951 retry = 1;
4956 cmdiocb->retry++;
4957 if (maxretry && (cmdiocb->retry >= maxretry)) {
4959 retry = 0;
4963 retry = 0;
4966 if (retry) {
4971 "2849 Stop retry ELS command "
4974 cmdiocb->retry, delay);
4983 cmd, did, cmdiocb->retry, delay);
5000 ndlp->nlp_retry = cmdiocb->retry;
5023 lpfc_issue_els_flogi(vport, ndlp, cmdiocb->retry);
5026 lpfc_issue_els_fdisc(vport, ndlp, cmdiocb->retry);
5034 lpfc_issue_els_plogi(vport, did, cmdiocb->retry);
5039 lpfc_issue_els_adisc(vport, ndlp, cmdiocb->retry);
5045 lpfc_issue_els_prli(vport, ndlp, cmdiocb->retry);
5050 lpfc_issue_els_logo(vport, ndlp, cmdiocb->retry);
5054 /* No retry ELS command <elsCmd> to remote NPORT <did> */
5057 "0137 No retry ELS command x%x to remote "
5064 "0108 No retry ELS command x%x to remote "
5066 cmd, did, cmdiocb->retry, ulp_status,
5524 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
5563 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
5641 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
5679 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
5792 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
5895 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, cmdiocb->retry,
5996 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
6120 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
6186 "retry %d task %d\n",
6290 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
6447 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
9025 elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
9659 * and avoid any retry logic.
11179 * lpfc_cancel_all_vport_retry_delay_timer - Cancel all vport retry delay timer
11182 * This routine cancels the retry delay timers to all the vports.
11211 * lpfc_retry_pport_discovery - Start timer to retry FLOGI.
11215 * start a timer to retry FLOGI for the physical port
11223 /* Cancel the all vports retry delay retry timers */
11325 /* Check for retry */
11424 * @retry: number of retries to the command IOCB.
11441 uint8_t retry)
11456 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did,