From: ftillier Date: Wed, 2 Nov 2005 22:21:19 +0000 (+0000) Subject: [IPoIB] Use instance parameters for service registration timeout X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9c24e9a3f5fb8f09b95a141121dbf03e52ea5046;p=~shefty%2Frdma-win.git [IPoIB] Use instance parameters for service registration timeout and retry count. git-svn-id: svn://openib.tc.cornell.edu/gen1@140 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/ulp/ipoib/kernel/ipoib_driver.c b/trunk/ulp/ipoib/kernel/ipoib_driver.c index 26ac3592..0dc365c2 100644 --- a/trunk/ulp/ipoib/kernel/ipoib_driver.c +++ b/trunk/ulp/ipoib/kernel/ipoib_driver.c @@ -115,9 +115,6 @@ static const unsigned char VENDOR_ID[] = {0x00, 0x06, 0x6A, 0x00}; #define IB_INFINITE_SERVICE_LEASE 0xFFFFFFFF -#define DEFAULT_SA_TIMEOUT 250 -#define DEFAULT_SA_RETRIES 3 - /* Global driver debug level */ uint32_t g_ipoib_dbg_lvl = IPOIB_DBG_ERROR; @@ -2092,8 +2089,8 @@ ipoib_reg_addrs( /* IP Address in question will be put in below */ ib_service.port_guid = p_adapter->guids.port_guid; - ib_service.timeout_ms = DEFAULT_SA_TIMEOUT; - ib_service.retry_cnt = DEFAULT_SA_RETRIES; + ib_service.timeout_ms = p_adapter->params.sa_timeout; + ib_service.retry_cnt = p_adapter->params.sa_retry_cnt; /* Can't set IB_FLAGS_SYNC here because I can't wait at dispatch */ ib_service.flags = 0;