From: eeb Date: Thu, 15 Sep 2005 08:54:50 +0000 (+0000) Subject: * Moved PTL_{MTU,_MD_MAX_IOV) into types.h X-Git-Tag: v1_7_100~1^25~6^2~185 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b539ac9226370bdb905f14be1a72041002a64faa;p=fs%2Flustre-release.git * Moved PTL_{MTU,_MD_MAX_IOV) into types.h * Removed ref in lustre_net.h to lib-types.h and simplified how PTLRPC_MAX_BRW_{SIZE,PAGES} are defined. --- diff --git a/lnet/include/lnet/lib-types.h b/lnet/include/lnet/lib-types.h index c18011f..0a5a6f7 100644 --- a/lnet/include/lnet/lib-types.h +++ b/lnet/include/lnet/lib-types.h @@ -120,10 +120,6 @@ typedef struct { #define PTL_PROTO_TCP_VERSION_MAJOR 1 #define PTL_PROTO_TCP_VERSION_MINOR 0 -/* limit on the number of entries in discontiguous MDs */ -#define PTL_MTU (1<<20) -#define PTL_MD_MAX_IOV 256 - /* Acceptor connection request */ typedef struct { __u32 acr_magic; /* PTL_ACCEPTOR_PROTO_MAGIC */ diff --git a/lnet/include/lnet/types.h b/lnet/include/lnet/types.h index cf51195..de2ca2d 100644 --- a/lnet/include/lnet/types.h +++ b/lnet/include/lnet/types.h @@ -56,6 +56,11 @@ typedef struct { lnet_handle_eq_t eq_handle; } lnet_md_t; +/* Max message size */ +#define PTL_MTU (1<<20) +/* limit on the number of entries in discontiguous MDs */ +#define PTL_MD_MAX_IOV 256 + /* Options for the MD structure */ #define LNET_MD_OP_PUT (1 << 0) #define LNET_MD_OP_GET (1 << 1)