[SCSI] libfc,fcoe,fnic: Separate rport and lport max retry counts
This allows fnic to configure number of retries for lport and rport separately. Signed-off-by: Abhijeet Joglekar <abjoglek@cisco.com> Acked-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:

committed by
James Bottomley

parent
d17bf602fb
commit
a366695592
@@ -478,7 +478,7 @@ static void fc_rport_error_retry(struct fc_rport *rport, struct fc_frame *fp)
|
||||
if (PTR_ERR(fp) == -FC_EX_CLOSED)
|
||||
return fc_rport_error(rport, fp);
|
||||
|
||||
if (rdata->retries < rdata->local_port->max_retry_count) {
|
||||
if (rdata->retries < rdata->local_port->max_rport_retry_count) {
|
||||
FC_DEBUG_RPORT("Error %ld in state %s, retrying\n",
|
||||
PTR_ERR(fp), fc_rport_state(rport));
|
||||
rdata->retries++;
|
||||
|
Reference in New Issue
Block a user