![Andrew Friedley](/assets/img/avatar_default.png)
In short, I'm very close to having connection establishment and eager send/recv working. Part of the connection process involves sending address information from the client to server. For some reason, I am never receiving an event indicating completetion of the send on the client side. Otherwise, connection establishment is working and eager send/recv should be trivial from here. Some more detailed changes: - Send partially implemented, just handles starting up new connections. - Several support functions implemented for establishing connection. Client side code went in btl_udapl_endpoint.c, server side in btl_udapl_component.c - Frags list and send/recv locks added to the endpoint structure. - BTL sets up a public service point, which listens for new connections. Steps over ports that are already bound, iterating through a range of ports. - Remove any traces of recv frags, don't think I need them after all. - Pieces of component_progress() implemented for connection establishment. - Frags have two new types for connection establishment - CONN_SEND and CONN_RECV. - Many other minor cleanups not affecting functionality This commit was SVN r9345.
84 строки
2.5 KiB
C
84 строки
2.5 KiB
C
/*
|
|
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#include "btl_udapl.h"
|
|
#include "btl_udapl_frag.h"
|
|
|
|
|
|
|
|
static void mca_btl_udapl_frag_common_constructor(mca_btl_udapl_frag_t* frag)
|
|
{
|
|
frag->base.des_src = NULL;
|
|
frag->base.des_src_cnt = 0;
|
|
frag->base.des_dst = NULL;
|
|
frag->base.des_dst_cnt = 0;
|
|
}
|
|
|
|
static void mca_btl_udapl_frag_eager_constructor(mca_btl_udapl_frag_t* frag)
|
|
{
|
|
frag->hdr = (mca_btl_base_header_t*)(frag + 1);
|
|
frag->segment.seg_addr.pval = (unsigned char*)(frag->hdr + 1);
|
|
frag->segment.seg_len = mca_btl_udapl_module.super.btl_eager_limit - sizeof(mca_btl_base_header_t);
|
|
frag->registration = NULL;
|
|
frag->size = mca_btl_udapl_component.udapl_eager_frag_size;
|
|
mca_btl_udapl_frag_common_constructor(frag);
|
|
}
|
|
|
|
static void mca_btl_udapl_frag_max_constructor(mca_btl_udapl_frag_t* frag)
|
|
{
|
|
frag->hdr = (mca_btl_base_header_t*)(frag + 1);
|
|
frag->segment.seg_addr.pval = (unsigned char*)(frag->hdr + 1);
|
|
frag->segment.seg_len = mca_btl_udapl_module.super.btl_max_send_size - sizeof(mca_btl_base_header_t);
|
|
frag->registration = NULL;
|
|
frag->size = mca_btl_udapl_component.udapl_max_frag_size;
|
|
mca_btl_udapl_frag_common_constructor(frag);
|
|
}
|
|
|
|
static void mca_btl_udapl_frag_user_constructor(mca_btl_udapl_frag_t* frag)
|
|
{
|
|
frag->hdr = NULL;
|
|
frag->size = 0;
|
|
mca_btl_udapl_frag_common_constructor(frag);
|
|
}
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
mca_btl_udapl_frag_t,
|
|
mca_btl_base_descriptor_t,
|
|
NULL,
|
|
NULL);
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
mca_btl_udapl_frag_eager_t,
|
|
mca_btl_base_descriptor_t,
|
|
mca_btl_udapl_frag_eager_constructor,
|
|
NULL);
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
mca_btl_udapl_frag_max_t,
|
|
mca_btl_base_descriptor_t,
|
|
mca_btl_udapl_frag_max_constructor,
|
|
NULL);
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
mca_btl_udapl_frag_user_t,
|
|
mca_btl_base_descriptor_t,
|
|
mca_btl_udapl_frag_user_constructor,
|
|
NULL);
|
|
|