Whamcloud - gitweb
b=bug4165
authorzhaoqiang <zhaoqiang>
Fri, 10 Sep 2004 03:23:41 +0000 (03:23 +0000)
committerzhaoqiang <zhaoqiang>
Fri, 10 Sep 2004 03:23:41 +0000 (03:23 +0000)
Move the LUSTRE_SRV_PTL_PID definition from lustre_idl.h to libcfs.h

lnet/include/linux/libcfs.h
lnet/klnds/qswlnd/qswlnd.h
lnet/lnet/module.c
lustre/include/linux/lustre_idl.h
lustre/portals/include/linux/libcfs.h
lustre/portals/knals/qswnal/qswnal.h
lustre/portals/portals/module.c

index 6bd9196..b725a56 100644 (file)
@@ -221,6 +221,25 @@ do {                                                                    \
 #define EXIT                            do { } while (0)
 #endif
 
+/* initial pid  */
+# if CRAY_PORTALS
+/* 
+ *
+ * 1) ptl_pid_t in cray portals is only 16 bits, not 32 bits, therefore this is too
+ * big.
+ *
+ * 2) the implementation of ernal in cray portals further restricts the pid space
+ * that may be used to 0 <= pid <= 255 (an 8 bit value).  Returns an error at nal
+ * init time for any pid outside this range.  Other nals in cray portals don't have
+ * this restriction.
+ * */
+#define LUSTRE_PTL_PID          9
+# else
+#define LUSTRE_PTL_PID          12345
+# endif
+
+#define LUSTRE_SRV_PTL_PID      LUSTRE_PTL_PID    
+
 #define PORTALS_CFG_VERSION 0x00010001;
 
 struct portals_cfg {
index bc4b2fd..b085caa 100644 (file)
@@ -79,7 +79,6 @@
 #include <portals/p30.h>
 #include <portals/lib-p30.h>
 #include <portals/nal.h>
-#include <linux/lustre_idl.h>
 
 #define KQSW_CHECKSUM   0
 #if KQSW_CHECKSUM
index d292a50..eb41dfd 100644 (file)
@@ -50,7 +50,6 @@
 #include <linux/kp30.h>
 #include <linux/kpr.h>
 #include <linux/portals_compat25.h>
-#include <linux/lustre_idl.h>
 
 extern void (kping_client)(struct portal_ioctl_data *);
 
index b0d32e5..8fb1303 100644 (file)
 #define LUSTRE_LOG_VERSION  0x00050000
 #define LUSTRE_PBD_VERSION  0x00060000
 
-/* initial pid  */
-#define LUSTRE_PTL_PID          999999
-#define LUSTRE_SRV_PTL_PID      LUSTRE_PTL_PID    
-
 struct lustre_handle {
         __u64 cookie;
 };
index 6bd9196..b725a56 100644 (file)
@@ -221,6 +221,25 @@ do {                                                                    \
 #define EXIT                            do { } while (0)
 #endif
 
+/* initial pid  */
+# if CRAY_PORTALS
+/* 
+ *
+ * 1) ptl_pid_t in cray portals is only 16 bits, not 32 bits, therefore this is too
+ * big.
+ *
+ * 2) the implementation of ernal in cray portals further restricts the pid space
+ * that may be used to 0 <= pid <= 255 (an 8 bit value).  Returns an error at nal
+ * init time for any pid outside this range.  Other nals in cray portals don't have
+ * this restriction.
+ * */
+#define LUSTRE_PTL_PID          9
+# else
+#define LUSTRE_PTL_PID          12345
+# endif
+
+#define LUSTRE_SRV_PTL_PID      LUSTRE_PTL_PID    
+
 #define PORTALS_CFG_VERSION 0x00010001;
 
 struct portals_cfg {
index bc4b2fd..b085caa 100644 (file)
@@ -79,7 +79,6 @@
 #include <portals/p30.h>
 #include <portals/lib-p30.h>
 #include <portals/nal.h>
-#include <linux/lustre_idl.h>
 
 #define KQSW_CHECKSUM   0
 #if KQSW_CHECKSUM
index d292a50..eb41dfd 100644 (file)
@@ -50,7 +50,6 @@
 #include <linux/kp30.h>
 #include <linux/kpr.h>
 #include <linux/portals_compat25.h>
-#include <linux/lustre_idl.h>
 
 extern void (kping_client)(struct portal_ioctl_data *);