]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qed: Enlrage the drain timeout
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 9 Mar 2016 07:16:26 +0000 (09:16 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 19:29:21 +0000 (12:29 -0700)
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>
Orabug: 23732603
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_mcp.c

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