aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ntb/ntb_transport.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2017-09-02 13:28:45 +0000
committerAlexander Motin <mav@FreeBSD.org>2017-09-02 13:28:45 +0000
commit3dcd9d784ab27ae0711b59c5f3d2ae4f3cba9f5d (patch)
treed61d79e30efb0e47b04dd4c21153041d20091f41 /sys/dev/ntb/ntb_transport.c
parent3990853d7152d53e5cc704ffebd1d882cbf04a17 (diff)
downloadsrc-3dcd9d784ab27ae0711b59c5f3d2ae4f3cba9f5d.tar.gz
src-3dcd9d784ab27ae0711b59c5f3d2ae4f3cba9f5d.zip
Increase negotiation polling period from 10ms to 100ms.
There is no big need to burn CPU if other side may be not there yet. For example, the PLX hardware by default enables the NTB link up on reset, not dependig on driver to do it. In case of Intel hardware this also reduces race between MSI-X workaround negotiation and upper layers, using the same scratchpad registers in different time. MFC after: 12 days
Notes
Notes: svn path=/head/; revision=323128
Diffstat (limited to 'sys/dev/ntb/ntb_transport.c')
-rw-r--r--sys/dev/ntb/ntb_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ntb/ntb_transport.c b/sys/dev/ntb/ntb_transport.c
index 869b53476882..bf2abf58fbae 100644
--- a/sys/dev/ntb/ntb_transport.c
+++ b/sys/dev/ntb/ntb_transport.c
@@ -250,7 +250,7 @@ enum {
#define QP_TO_MW(nt, qp) ((qp) % nt->mw_count)
#define NTB_QP_DEF_NUM_ENTRIES 100
-#define NTB_LINK_DOWN_TIMEOUT 10
+#define NTB_LINK_DOWN_TIMEOUT 100
static int ntb_transport_probe(device_t dev);
static int ntb_transport_attach(device_t dev);