Commit b4cb70b6 authored by Netanel Belgazal's avatar Netanel Belgazal Committed by Thadeu Lima de Souza Cascardo

net/ena: change driver's default timeouts

BugLink: http://bugs.launchpad.net/bugs/1664312

The timeouts were too agressive and sometimes cause false alarms.
Signed-off-by: default avatarNetanel Belgazal <netanel@annapurnalabs.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit 7102a18a)
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
parent 45dbb75d
...@@ -36,9 +36,9 @@ ...@@ -36,9 +36,9 @@
/*****************************************************************************/ /*****************************************************************************/
/* Timeout in micro-sec */ /* Timeout in micro-sec */
#define ADMIN_CMD_TIMEOUT_US (1000000) #define ADMIN_CMD_TIMEOUT_US (3000000)
#define ENA_ASYNC_QUEUE_DEPTH 4 #define ENA_ASYNC_QUEUE_DEPTH 16
#define ENA_ADMIN_QUEUE_DEPTH 32 #define ENA_ADMIN_QUEUE_DEPTH 32
#define MIN_ENA_VER (((ENA_COMMON_SPEC_VERSION_MAJOR) << \ #define MIN_ENA_VER (((ENA_COMMON_SPEC_VERSION_MAJOR) << \
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
/* Number of queues to check for missing queues per timer service */ /* Number of queues to check for missing queues per timer service */
#define ENA_MONITORED_TX_QUEUES 4 #define ENA_MONITORED_TX_QUEUES 4
/* Max timeout packets before device reset */ /* Max timeout packets before device reset */
#define MAX_NUM_OF_TIMEOUTED_PACKETS 32 #define MAX_NUM_OF_TIMEOUTED_PACKETS 128
#define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) #define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1))
...@@ -116,9 +116,9 @@ ...@@ -116,9 +116,9 @@
#define ENA_IO_IRQ_IDX(q) (ENA_IO_IRQ_FIRST_IDX + (q)) #define ENA_IO_IRQ_IDX(q) (ENA_IO_IRQ_FIRST_IDX + (q))
/* ENA device should send keep alive msg every 1 sec. /* ENA device should send keep alive msg every 1 sec.
* We wait for 3 sec just to be on the safe side. * We wait for 6 sec just to be on the safe side.
*/ */
#define ENA_DEVICE_KALIVE_TIMEOUT (3 * HZ) #define ENA_DEVICE_KALIVE_TIMEOUT (6 * HZ)
#define ENA_MMIO_DISABLE_REG_READ BIT(0) #define ENA_MMIO_DISABLE_REG_READ BIT(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment