2005-07-28 23:53:27 +04:00
|
|
|
#include "btl_mx_frag.h"
|
2005-07-27 23:46:36 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-07-28 23:53:27 +04:00
|
|
|
static void mca_btl_mx_frag_common_constructor(mca_btl_mx_frag_t* frag)
|
2005-07-27 23:46:36 +04:00
|
|
|
{
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_common_constructor(frag);
|
2005-07-27 23:46:36 +04:00
|
|
|
frag->base.des_src = NULL;
|
|
|
|
frag->base.des_src_cnt = 0;
|
|
|
|
frag->base.des_dst = NULL;
|
|
|
|
frag->base.des_dst_cnt = 0;
|
|
|
|
}
|
|
|
|
|
2005-07-28 23:53:27 +04:00
|
|
|
static void mca_btl_mx_frag_eager_constructor(mca_btl_mx_frag_t* frag)
|
2005-07-27 23:46:36 +04:00
|
|
|
{
|
2005-07-28 23:53:27 +04:00
|
|
|
frag->size = mca_btl_mx_module.super.btl_eager_limit;
|
|
|
|
mca_btl_mx_frag_common_constructor(frag);
|
2005-07-27 23:46:36 +04:00
|
|
|
}
|
|
|
|
|
2005-07-28 23:53:27 +04:00
|
|
|
static void mca_btl_mx_frag_max_constructor(mca_btl_mx_frag_t* frag)
|
2005-07-27 23:46:36 +04:00
|
|
|
{
|
2005-07-28 23:53:27 +04:00
|
|
|
frag->size = mca_btl_mx_module.super.btl_max_send_size;
|
|
|
|
mca_btl_mx_frag_common_constructor(frag);
|
2005-07-27 23:46:36 +04:00
|
|
|
}
|
|
|
|
|
2005-07-28 23:53:27 +04:00
|
|
|
static void mca_btl_mx_frag_user_constructor(mca_btl_mx_frag_t* frag)
|
2005-07-27 23:46:36 +04:00
|
|
|
{
|
|
|
|
frag->size = 0;
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_common_constructor(frag);
|
2005-07-27 23:46:36 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_t,
|
2005-07-27 23:46:36 +04:00
|
|
|
mca_btl_base_descriptor_t,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_eager_t,
|
2005-07-27 23:46:36 +04:00
|
|
|
mca_btl_base_descriptor_t,
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_eager_constructor,
|
2005-07-27 23:46:36 +04:00
|
|
|
NULL);
|
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_max_t,
|
2005-07-27 23:46:36 +04:00
|
|
|
mca_btl_base_descriptor_t,
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_max_constructor,
|
2005-07-27 23:46:36 +04:00
|
|
|
NULL);
|
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_user_t,
|
2005-07-27 23:46:36 +04:00
|
|
|
mca_btl_base_descriptor_t,
|
2005-07-28 23:53:27 +04:00
|
|
|
mca_btl_mx_frag_user_constructor,
|
2005-07-27 23:46:36 +04:00
|
|
|
NULL);
|
|
|
|
|