qed: Enlrage the drain timeout

In the scenario where slowpath configuration isn't passing due to
various pause configurations affecting the chip, the theoretical time
required in worst-case-scenario to empty hw fifos sufficiently to
guarantee that slowpath configuration would flow is currently
insufficient.

This increases such a drain request to the theoretical maximum.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Yuval Mintz 2016-03-09 09:16:26 +02:00 committed by David S. Miller
parent 334c03b59b
commit 8f60bafec3

View file

@ -899,11 +899,11 @@ int qed_mcp_drain(struct qed_hwfn *p_hwfn,
int rc; int rc;
rc = qed_mcp_cmd(p_hwfn, p_ptt, rc = qed_mcp_cmd(p_hwfn, p_ptt,
DRV_MSG_CODE_NIG_DRAIN, 100, DRV_MSG_CODE_NIG_DRAIN, 1000,
&resp, &param); &resp, &param);
/* Wait for the drain to complete before returning */ /* Wait for the drain to complete before returning */
msleep(120); msleep(1020);
return rc; return rc;
} }