OpenMPI  0.1.1
pml_csum_hdr.h File Reference
#include "ompi_config.h"
#include "opal/types.h"
#include "opal/util/arch.h"
#include "ompi/mca/btl/btl.h"
#include "ompi/proc/proc.h"

Go to the source code of this file.

Data Structures

struct  mca_pml_csum_common_hdr_t
 Common hdr attributes - must be first element in each hdr type. More...
 
struct  mca_pml_csum_match_hdr_t
 Header definition for the first fragment, contains the attributes required to match the corresponding posted receive. More...
 
struct  mca_pml_csum_rendezvous_hdr_t
 Header definition for the first fragment when an acknowledgment is required. More...
 
struct  mca_pml_csum_rget_hdr_t
 Header definition for a combined rdma rendezvous/get. More...
 
struct  mca_pml_csum_frag_hdr_t
 Header for subsequent fragments. More...
 
struct  mca_pml_csum_ack_hdr_t
 Header used to acknowledgment outstanding fragment(s). More...
 
struct  mca_pml_csum_rdma_hdr_t
 Header used to initiate an RDMA operation. More...
 
struct  mca_pml_csum_fin_hdr_t
 Header used to complete an RDMA operation. More...
 
union  mca_pml_csum_hdr_t
 Union of defined hdr types. More...
 

Macros

#define MCA_PML_CSUM_HDR_TYPE_MATCH   (MCA_BTL_TAG_PML + 1)
 
#define MCA_PML_CSUM_HDR_TYPE_RNDV   (MCA_BTL_TAG_PML + 2)
 
#define MCA_PML_CSUM_HDR_TYPE_RGET   (MCA_BTL_TAG_PML + 3)
 
#define MCA_PML_CSUM_HDR_TYPE_ACK   (MCA_BTL_TAG_PML + 4)
 
#define MCA_PML_CSUM_HDR_TYPE_NACK   (MCA_BTL_TAG_PML + 5)
 
#define MCA_PML_CSUM_HDR_TYPE_FRAG   (MCA_BTL_TAG_PML + 6)
 
#define MCA_PML_CSUM_HDR_TYPE_GET   (MCA_BTL_TAG_PML + 7)
 
#define MCA_PML_CSUM_HDR_TYPE_PUT   (MCA_BTL_TAG_PML + 8)
 
#define MCA_PML_CSUM_HDR_TYPE_FIN   (MCA_BTL_TAG_PML + 9)
 
#define MCA_PML_CSUM_HDR_FLAGS_ACK   1 /* is an ack required */
 
#define MCA_PML_CSUM_HDR_FLAGS_NBO   2 /* is the hdr in network byte order */
 
#define MCA_PML_CSUM_HDR_FLAGS_PIN   4 /* is user buffer pinned */
 
#define MCA_PML_CSUM_HDR_FLAGS_CONTIG   8 /* is user buffer contiguous */
 
#define MCA_PML_CSUM_HDR_FLAGS_NORDMA   16 /* rest will be send by copy-in-out */
 
#define MCA_PML_CSUM_COMMON_HDR_NTOH(h)   (h).hdr_csum = ntohs((h).hdr_csum);
 
#define MCA_PML_CSUM_COMMON_HDR_HTON(h)   (h).hdr_csum = htons((h).hdr_csum);
 
#define OMPI_PML_CSUM_MATCH_HDR_LEN   20
 
#define MCA_PML_CSUM_MATCH_HDR_NTOH(h)
 
#define MCA_PML_CSUM_MATCH_HDR_HTON(h)
 
#define MCA_PML_CSUM_RNDV_HDR_NTOH(h)
 
#define MCA_PML_CSUM_RNDV_HDR_HTON(h)
 
#define MCA_PML_CSUM_RGET_HDR_FILL(h)
 
#define MCA_PML_CSUM_RGET_HDR_NTOH(h)
 
#define MCA_PML_CSUM_RGET_HDR_HTON(h)
 
#define MCA_PML_CSUM_FRAG_HDR_NTOH(h)
 
#define MCA_PML_CSUM_FRAG_HDR_HTON(h)
 
#define MCA_PML_CSUM_ACK_HDR_FILL(h)
 
#define MCA_PML_CSUM_ACK_HDR_NTOH(h)
 
#define MCA_PML_CSUM_ACK_HDR_HTON(h)
 
#define MCA_PML_CSUM_RDMA_HDR_NTOH(h)
 
#define MCA_PML_CSUM_RDMA_HDR_HTON(h)
 
#define MCA_PML_CSUM_FIN_HDR_NTOH(h)
 
#define MCA_PML_CSUM_FIN_HDR_HTON(h)
 
#define csum_hdr_ntoh(h, t)   do{}while(0)
 
#define csum_hdr_hton(h, t, p)   do{}while(0)
 

Typedefs

typedef struct
mca_pml_csum_common_hdr_t 
mca_pml_csum_common_hdr_t
 
typedef struct
mca_pml_csum_match_hdr_t 
mca_pml_csum_match_hdr_t
 
typedef struct
mca_pml_csum_rendezvous_hdr_t 
mca_pml_csum_rendezvous_hdr_t
 
typedef struct
mca_pml_csum_rget_hdr_t 
mca_pml_csum_rget_hdr_t
 
typedef struct
mca_pml_csum_frag_hdr_t 
mca_pml_csum_frag_hdr_t
 
typedef struct
mca_pml_csum_ack_hdr_t 
mca_pml_csum_ack_hdr_t
 
typedef struct
mca_pml_csum_rdma_hdr_t 
mca_pml_csum_rdma_hdr_t
 
typedef struct
mca_pml_csum_fin_hdr_t 
mca_pml_csum_fin_hdr_t
 
typedef union mca_pml_csum_hdr_t mca_pml_csum_hdr_t
 

Macro Definition Documentation

#define MCA_PML_CSUM_ACK_HDR_HTON (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_HTON((h).hdr_common); \
MCA_PML_CSUM_ACK_HDR_FILL(h); \
(h).hdr_send_offset = hton64((h).hdr_send_offset); \
} while (0)
#define MCA_PML_CSUM_ACK_HDR_NTOH (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_NTOH((h).hdr_common); \
(h).hdr_send_offset = ntoh64((h).hdr_send_offset); \
} while (0)
#define MCA_PML_CSUM_FIN_HDR_HTON (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_HTON((h).hdr_common); \
(h).hdr_csum = htonl((h).hdr_csum); \
(h).hdr_fail = htonl((h).hdr_fail); \
} while (0)
#define MCA_PML_CSUM_FIN_HDR_NTOH (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_NTOH((h).hdr_common); \
(h).hdr_csum = ntohl((h).hdr_csum); \
(h).hdr_fail = ntohl((h).hdr_fail); \
} while (0)
#define MCA_PML_CSUM_FRAG_HDR_HTON (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_HTON((h).hdr_common); \
(h).hdr_csum = htonl((h).hdr_csum); \
(h).hdr_frag_offset = hton64((h).hdr_frag_offset); \
} while (0)
#define MCA_PML_CSUM_FRAG_HDR_NTOH (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_NTOH((h).hdr_common); \
(h).hdr_csum = ntohl((h).hdr_csum); \
(h).hdr_frag_offset = ntoh64((h).hdr_frag_offset); \
} while (0)
#define MCA_PML_CSUM_MATCH_HDR_HTON (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_HTON((h).hdr_common); \
(h).hdr_ctx = htons((h).hdr_ctx); \
(h).hdr_src = htonl((h).hdr_src); \
(h).hdr_tag = htonl((h).hdr_tag); \
(h).hdr_seq = htons((h).hdr_seq); \
(h).hdr_csum = htonl((h).hdr_csum); \
} while (0)
#define MCA_PML_CSUM_MATCH_HDR_NTOH (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_NTOH((h).hdr_common); \
(h).hdr_ctx = ntohs((h).hdr_ctx); \
(h).hdr_src = ntohl((h).hdr_src); \
(h).hdr_tag = ntohl((h).hdr_tag); \
(h).hdr_seq = ntohs((h).hdr_seq); \
(h).hdr_csum = ntohl((h).hdr_csum); \
} while (0)
#define MCA_PML_CSUM_RDMA_HDR_HTON (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_HTON((h).hdr_common); \
(h).hdr_seg_cnt = htonl((h).hdr_seg_cnt); \
(h).hdr_rdma_offset = hton64((h).hdr_rdma_offset); \
} while (0)
#define MCA_PML_CSUM_RDMA_HDR_NTOH (   h)
Value:
do { \
MCA_PML_CSUM_COMMON_HDR_NTOH((h).hdr_common); \
(h).hdr_seg_cnt = ntohl((h).hdr_seg_cnt); \
(h).hdr_rdma_offset = ntoh64((h).hdr_rdma_offset); \
} while (0)
#define MCA_PML_CSUM_RGET_HDR_HTON (   h)
Value:
do { \
MCA_PML_CSUM_RNDV_HDR_HTON((h).hdr_rndv); \
MCA_PML_CSUM_RGET_HDR_FILL(h); \
(h).hdr_seg_cnt = htonl((h).hdr_seg_cnt); \
} while (0)
#define MCA_PML_CSUM_RGET_HDR_NTOH (   h)
Value:
do { \
MCA_PML_CSUM_RNDV_HDR_NTOH((h).hdr_rndv); \
(h).hdr_seg_cnt = ntohl((h).hdr_seg_cnt); \
} while (0)
#define MCA_PML_CSUM_RNDV_HDR_HTON (   h)
Value:
do { \
MCA_PML_CSUM_MATCH_HDR_HTON((h).hdr_match); \
(h).hdr_msg_length = hton64((h).hdr_msg_length); \
} while (0)
#define MCA_PML_CSUM_RNDV_HDR_NTOH (   h)
Value:
do { \
MCA_PML_CSUM_MATCH_HDR_NTOH((h).hdr_match); \
(h).hdr_msg_length = ntoh64((h).hdr_msg_length); \
} while (0)