[IPoIB] Use instance parameters for service registration timeout
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Nov 2005 22:21:19 +0000 (22:21 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Nov 2005 22:21:19 +0000 (22:21 +0000)
and retry count.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@140 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_driver.c

index 26ac359..0dc365c 100644 (file)
@@ -115,9 +115,6 @@ static const unsigned char VENDOR_ID[] = {0x00, 0x06, 0x6A, 0x00};
 \r
 #define IB_INFINITE_SERVICE_LEASE      0xFFFFFFFF\r
 \r
-#define DEFAULT_SA_TIMEOUT                     250\r
-#define DEFAULT_SA_RETRIES                     3\r
-\r
 \r
 /* Global driver debug level */\r
 uint32_t               g_ipoib_dbg_lvl = IPOIB_DBG_ERROR;\r
@@ -2092,8 +2089,8 @@ ipoib_reg_addrs(
 \r
        /* IP Address in question will be put in below */\r
        ib_service.port_guid            = p_adapter->guids.port_guid;\r
-       ib_service.timeout_ms           = DEFAULT_SA_TIMEOUT;\r
-       ib_service.retry_cnt            = DEFAULT_SA_RETRIES;\r
+       ib_service.timeout_ms           = p_adapter->params.sa_timeout;\r
+       ib_service.retry_cnt            = p_adapter->params.sa_retry_cnt;\r
 \r
        /* Can't set IB_FLAGS_SYNC here because I can't wait at dispatch */\r
        ib_service.flags                        = 0;\r