Commit 77f49e9b authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: lnet: change lnet_msg_type_t to proper enum

Change lnet_msg_type_t from typedef to proper enum.
Signed-off-by: default avatarJames Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/20831Reviewed-by: default avatarOlaf Weber <olaf@sgi.com>
Reviewed-by: default avatarDoug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 06ef1af8
...@@ -132,13 +132,13 @@ struct lnet_handle_wire { ...@@ -132,13 +132,13 @@ struct lnet_handle_wire {
__u64 wh_object_cookie; __u64 wh_object_cookie;
} WIRE_ATTR; } WIRE_ATTR;
typedef enum { enum lnet_msg_type {
LNET_MSG_ACK = 0, LNET_MSG_ACK = 0,
LNET_MSG_PUT, LNET_MSG_PUT,
LNET_MSG_GET, LNET_MSG_GET,
LNET_MSG_REPLY, LNET_MSG_REPLY,
LNET_MSG_HELLO, LNET_MSG_HELLO,
} lnet_msg_type_t; };
/* /*
* The variant fields of the portals message header are aligned on an 8 * The variant fields of the portals message header are aligned on an 8
...@@ -182,7 +182,7 @@ struct lnet_hdr { ...@@ -182,7 +182,7 @@ struct lnet_hdr {
lnet_nid_t src_nid; lnet_nid_t src_nid;
lnet_pid_t dest_pid; lnet_pid_t dest_pid;
lnet_pid_t src_pid; lnet_pid_t src_pid;
__u32 type; /* lnet_msg_type_t */ __u32 type; /* enum lnet_msg_type */
__u32 payload_length; /* payload data to follow */ __u32 payload_length; /* payload data to follow */
/*<------__u64 aligned------->*/ /*<------__u64 aligned------->*/
union { union {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment