[openib-general] ib_query/modify_hca_xxx in ib_verbs

Sean Hefty mshefty at ichips.intel.com
Fri Jul 30 10:20:22 PDT 2004


On Fri, 30 Jul 2004 07:15:19 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> Should the ib_query/modify_hca_xxx calls now be ib_query/modify_device_xxx
> calls ?

Here's a patch that renames these calls and simplifies the query pkey/gid routines.  Unless there are objections, I will update the file.

- Sean

Index: ib_verbs.h
===================================================================
--- ib_verbs.h	(revision 544)
+++ ib_verbs.h	(working copy)
@@ -534,28 +534,26 @@
 	IB_CQ_NEXT_COMP
 };
 
-int ib_query_hca_cap(struct ib_device *device,
-		     struct ib_device_cap *device_cap);
+int ib_query_device(struct ib_device *device,
+		    struct ib_device_cap *device_cap);
 
-int ib_query_hca_port_prop(struct ib_device *device, 
-			   u8 port_num, 
-			   struct ib_port *port);
-
-int ib_query_hca_gid_tbl(struct ib_device *device,
-			 u8 port_num,
-			 int tbl_len_in,
-			 int *tbl_len_out,
-			 union ib_gid *gid_tbl);
-
-int ib_query_hca_pkey_tbl(struct ib_device *device,
-			  u8 port_num,
-			  int tbl_len_in,
-			  int *tbl_len_out,
-			  u16 *pkey_tbl);
-
-int ib_modify_hca_attr(struct ib_device *device,
-		       u8 port_num,
-		       int device_attr_flags);
+int ib_query_port(struct ib_device *device, 
+		  u8 port_num, 
+		  struct ib_port *port);
+
+int ib_query_gid(struct ib_device *device,
+		 u8 port_num, 
+		 int index,
+		 union ib_gid *gid);
+
+int ib_query_pkey(struct ib_device *device,
+		  u8 port_num, 
+		  u16 index,
+		  u16 *pkey);
+
+int ib_modify_device(struct ib_device *device,
+		     u8 port_num,
+		     int device_attr_flags);
 
 struct ib_pd *ib_alloc_pd(struct ib_device *device);
 



More information about the general mailing list