Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3252688f authored by Manish Rangankar's avatar Manish Rangankar Committed by Martin K. Petersen
Browse files

scsi: qedi: Adjust termination and offload ramrod timers



Whenever offload ramrod is issued, firmware wants driver to wait for max 5
secs, otherwise driver can initiate further corrective action. Similarly,
when termination ramrod is issued, irrespective of abortive or non-abortive
termination, driver should wait for 60 sec * max TCP-RT timeout.

[mkp: typos]

Signed-off-by: default avatarManish Rangankar <mrangankar@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent f848bfd8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -993,10 +993,11 @@ static void qedi_ep_disconnect(struct iscsi_endpoint *ep)
	struct iscsi_conn *conn = NULL;
	struct qedi_ctx *qedi;
	int ret = 0;
	int wait_delay = 20 * HZ;
	int wait_delay;
	int abrt_conn = 0;
	int count = 10;

	wait_delay = 60 * HZ + DEF_MAX_RT_TIME;
	qedi_ep = ep->dd_data;
	qedi = qedi_ep->qedi;

@@ -1166,7 +1167,7 @@ static void qedi_offload_work(struct work_struct *work)
	struct qedi_endpoint *qedi_ep =
		container_of(work, struct qedi_endpoint, offload_work);
	struct qedi_ctx *qedi;
	int wait_delay = 20 * HZ;
	int wait_delay = 5 * HZ;
	int ret;

	qedi = qedi_ep->qedi;