#define LNET_RC_STATE_RUNNING 1 /* started up OK */
#define LNET_RC_STATE_STOPPING 2 /* telling thread to stop */
+/* LNet states */
+#define LNET_STATE_SHUTDOWN 0 /* not started */
+#define LNET_STATE_RUNNING 1 /* started up OK */
+#define LNET_STATE_STOPPING 2 /* telling thread to stop */
+
typedef struct lnet {
/* CPU partition table of LNet */
struct cfs_cpt_table *ln_cpt_table;
int ln_niinit_self;
/* LNetNIInit/LNetNIFini counter */
int ln_refcount;
- /* shutdown in progress */
- int ln_shutdown;
+ /* SHUTDOWN/RUNNING/STOPPING */
+ int ln_state;
int ln_routing; /* am I a router? */
lnet_pid_t ln_pid; /* requested pid */