X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lnet%2Fklnds%2Fmxlnd%2Fmxlnd.h;h=c2b285cd278cab15bd3cce387417e04d03e01473;hb=7b8487f170af5ddb80ffe7a3b6e2655550006ff8;hp=86ddef25a612672b737a727276290dd97410ad30;hpb=f3b3e3f1b92f507816120a53bbfd0ab4887a7a98;p=fs%2Flustre-release.git diff --git a/lnet/klnds/mxlnd/mxlnd.h b/lnet/klnds/mxlnd/mxlnd.h index 86ddef2..c2b285c 100644 --- a/lnet/klnds/mxlnd/mxlnd.h +++ b/lnet/klnds/mxlnd/mxlnd.h @@ -133,9 +133,12 @@ #define MXLND_NDAEMONS 3 /* connd, timeoutd, tx_queued */ #define MXLND_MX_BOARD 0 /* Use the first MX NIC if more than 1 avail */ #define MXLND_MX_EP_ID 0 /* MX endpoint ID */ -#define MXLND_COMM_TIMEOUT (20 * HZ) /* timeout for send/recv (jiffies) */ -#define MXLND_WAIT_TIMEOUT HZ /* timeout for wait (jiffies) */ -#define MXLND_CONNECT_TIMEOUT (5 * HZ) /* timeout for connections (jiffies) */ +/* timeout for send/recv (jiffies) */ +#define MXLND_COMM_TIMEOUT msecs_to_jiffies(20 * MSEC_PER_SEC) +/* timeout for wait (jiffies) */ +#define MXLND_WAIT_TIMEOUT msecs_to_jiffies(MSEC_PER_SEC) +/* timeout for connections (jiffies) */ +#define MXLND_CONNECT_TIMEOUT msecs_to_jiffies(5 * MSEC_PER_SEC) #define MXLND_POLLING 1000 /* poll iterations before blocking */ #define MXLND_LOOKUP_COUNT 5 /* how many times to try to resolve MAC */ #define MXLND_MAX_PEERS 1024 /* number of nodes talking to me */