[Pvfs2-cvs] commit by pcarns in pvfs2/src/io/bmi: bmi-method-support.h bmi.c

CVS commit program cvs at parl.clemson.edu
Sun Jul 19 10:50:23 EDT 2009


Update of /projects/cvsroot/pvfs2/src/io/bmi
In directory parlweb1:/tmp/cvs-serv16497/bmi

Modified Files:
      Tag: bmi-experimental-branch
	bmi-method-support.h bmi.c 
Log Message:
Drop non-list versions of send, recv, and sendunexpected from the method api
(but leave in the BMI api for now).  Only implemented for tcp for now, need
to update other methods.


Index: bmi-method-support.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/bmi/bmi-method-support.h,v
diff -p -u -r1.34.26.1 -r1.34.26.2
--- bmi-method-support.h	19 Jul 2009 14:19:07 -0000	1.34.26.1
+++ bmi-method-support.h	19 Jul 2009 14:50:23 -0000	1.34.26.2
@@ -76,34 +76,6 @@ struct bmi_method_ops
 
     int (*unexpected_free) (void *);
 
-    int (*post_send) (bmi_op_id_t *,
-                      bmi_method_addr_p,
-                      const void *,
-                      bmi_size_t,
-                      enum bmi_buffer_type,
-                      bmi_msg_tag_t,
-                      void *,
-                      bmi_context_id,
-                      PVFS_hint hints);
-    int (*post_sendunexpected) (bmi_op_id_t *,
-                                bmi_method_addr_p,
-                                const void *,
-                                bmi_size_t,
-                                enum bmi_buffer_type,
-                                bmi_msg_tag_t,
-                                void *,
-                                bmi_context_id,
-                                PVFS_hint hints);
-    int (*post_recv) (bmi_op_id_t *,
-                      bmi_method_addr_p,
-                      void *,
-                      bmi_size_t,
-                      bmi_size_t *,
-                      enum bmi_buffer_type,
-                      bmi_msg_tag_t,
-                      void *,
-                      bmi_context_id,
-                      PVFS_hint hints);
     int (*test) (bmi_op_id_t,
                  int *,
                  bmi_error_code_t *,

Index: bmi.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/bmi/bmi.c,v
diff -p -u -r1.101 -r1.101.2.1
--- bmi.c	10 Jun 2009 16:07:48 -0000	1.101
+++ bmi.c	19 Jul 2009 14:50:23 -0000	1.101.2.1
@@ -668,8 +668,8 @@ int BMI_post_recv(bmi_op_id_t * id,
     }
     gen_mutex_unlock(&ref_mutex);
 
-    ret = tmp_ref->interface->post_recv(
-        id, tmp_ref->method_addr, buffer, expected_size, actual_size,
+    ret = tmp_ref->interface->post_recv_list(
+        id, tmp_ref->method_addr, &buffer, &expected_size, 1, expected_size, actual_size,
         buffer_type, tag, user_ptr, context_id, (PVFS_hint)hints);
     return (ret);
 }
@@ -707,8 +707,8 @@ int BMI_post_send(bmi_op_id_t * id,
     }
     gen_mutex_unlock(&ref_mutex);
 
-    ret = tmp_ref->interface->post_send(
-        id, tmp_ref->method_addr, buffer, size, buffer_type, tag,
+    ret = tmp_ref->interface->post_send_list(
+        id, tmp_ref->method_addr, &buffer, &size, 1, size, buffer_type, tag,
         user_ptr, context_id, (PVFS_hint)hints);
     return (ret);
 }
@@ -746,8 +746,8 @@ int BMI_post_sendunexpected(bmi_op_id_t 
     }
     gen_mutex_unlock(&ref_mutex);
 
-    ret = tmp_ref->interface->post_sendunexpected(
-        id, tmp_ref->method_addr, buffer, size, buffer_type, tag,
+    ret = tmp_ref->interface->post_sendunexpected_list(
+        id, tmp_ref->method_addr, &buffer, &size, 1, size, buffer_type, tag,
         user_ptr, context_id, (PVFS_hint)hints);
     return (ret);
 }



More information about the Pvfs2-cvs mailing list