OpenMPI  0.1.1
btl_wv_ini.h
1 /*
2  * Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved.
3  * Copyright (c) 2008 Mellanox Technologies. All rights reserved.
4  * $COPYRIGHT$
5  *
6  * Additional copyrights may follow
7  *
8  * $HEADER$
9  *
10  * @file
11  */
12 
13 #ifndef MCA_PTL_IB_PARAMS_H
14 #define MCA_PTL_IB_PARAMS_H
15 
16 #include "btl_wv.h"
17 
18 
19 /*
20  * Struct to hold the settable values that may be specified in the INI
21  * file
22  */
23 typedef struct ompi_btl_wv_ini_values_t {
24  uint32_t mtu;
25  bool mtu_set;
26 
27  uint32_t use_eager_rdma;
28  bool use_eager_rdma_set;
29 
30  char *receive_queues;
31 
32  int32_t max_inline_data;
33  bool max_inline_data_set;
34 
35  bool rdmacm_reject_causes_connect_error;
36  bool rdmacm_reject_causes_connect_error_set;
38 
39 
40 BEGIN_C_DECLS
41 
42  /**
43  * Read in the INI files containing device params
44  */
45  int ompi_btl_wv_ini_init(void);
46 
47  /**
48  * Query the read-in params for a given device
49  */
50  int ompi_btl_wv_ini_query(uint32_t vendor_id,
51  uint32_t vendor_part_id,
52  ompi_btl_wv_ini_values_t *values);
53 
54  /**
55  * Shut down / release all internal state
56  */
57  int ompi_btl_wv_ini_finalize(void);
58 
59  /**
60  * string to int convertors with dec/hex autodetection
61  */
62  int ompi_btl_wv_ini_intify(char *string);
63  int ompi_btl_wv_ini_intify_list(char *str, uint32_t **values, int *len);
64 
65 END_C_DECLS
66 
67 #endif
Definition: btl_wv_ini.h:23