From 1b667067d6cfab8fe90d0c09ae66bd839cca0c1e Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Sat, 10 Dec 2005 23:28:16 +0000 Subject: [PATCH] I need to know the number of iovec attached to the fragment. This commit was SVN r8447. --- ompi/mca/btl/tcp/btl_tcp_frag.h | 4 ++-- ompi/mca/btl/tcp/btl_tcp_proc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ompi/mca/btl/tcp/btl_tcp_frag.h b/ompi/mca/btl/tcp/btl_tcp_frag.h index 634598ea5c..858edd984e 100644 --- a/ompi/mca/btl/tcp/btl_tcp_frag.h +++ b/ompi/mca/btl/tcp/btl_tcp_frag.h @@ -38,7 +38,7 @@ extern "C" { #endif OMPI_DECLSPEC OBJ_CLASS_DECLARATION(mca_btl_tcp_frag_t); - +#define MCA_BTL_TCP_FRAG_IOVEC_NUMBER 4 /** * TCP fragment derived type. @@ -49,7 +49,7 @@ struct mca_btl_tcp_frag_t { struct mca_btl_base_endpoint_t *endpoint; struct mca_btl_tcp_module_t* btl; mca_btl_tcp_hdr_t hdr; - struct iovec iov[4]; + struct iovec iov[MCA_BTL_TCP_FRAG_IOVEC_NUMBER]; struct iovec *iov_ptr; size_t iov_cnt; size_t iov_idx; diff --git a/ompi/mca/btl/tcp/btl_tcp_proc.c b/ompi/mca/btl/tcp/btl_tcp_proc.c index e50fdf2c29..42866973eb 100644 --- a/ompi/mca/btl/tcp/btl_tcp_proc.c +++ b/ompi/mca/btl/tcp/btl_tcp_proc.c @@ -60,7 +60,7 @@ void mca_btl_tcp_proc_destruct(mca_btl_tcp_proc_t* proc) /* release resources */ if(NULL != proc->proc_endpoints) { free(proc->proc_endpoints); - OBJ_DESTRUCT(&proc->proc_lock); + OBJ_DESTRUCT(&proc->proc_lock); } }