File: btl_openib_ip.h

package info (click to toggle)
openmpi 1.6.5-9.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 91,652 kB
  • sloc: ansic: 408,966; cpp: 44,454; sh: 27,828; makefile: 10,486; asm: 3,882; python: 1,239; lex: 805; perl: 549; csh: 253; fortran: 232; f90: 126; tcl: 12
file content (55 lines) | stat: -rw-r--r-- 1,427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * Copyright (c) 2008      Chelsio, Inc. All rights reserved.
 * Copyright (c) 2008-2010 Cisco Systems, Inc.  All rights reserved.
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 *
 * @file
 */

#ifndef MCA_BTL_OPENIB_IP_H
#define MCA_BTL_OPENIB_IP_H

#include "ompi_config.h"

BEGIN_C_DECLS

/**
 * Get an IP equivalent of a subnet ID.
 *
 * @param ib_dev (IN) IBV device
 * @return            Value of the IPv4 Address bitwise-and'ed with the Netmask
 */
extern uint64_t mca_btl_openib_get_ip_subnet_id(struct ibv_device *ib_dev,
                                                   uint8_t port);

/**
 * Get the IPv4 address of the specified HCA/RNIC device and physical port.
 *
 * @param verbs (IN)   cm_id verbs of the IBV device
 * @param port (IN)    physical port of the IBV device
 * @return             IPv4 Address
 */
extern uint32_t mca_btl_openib_rdma_get_ipv4addr(struct ibv_context *verbs, 
                                                 uint8_t port);

/**
 * Create a list of all available IBV devices and each device's
 * relevant information.  This is necessary for
 * mca_btl_openib_rdma_get_ipv4addr to work.
 *
 * @return OMPI_SUCCESS or failure status
 */
extern int mca_btl_openib_build_rdma_addr_list(void);

/**
 * Free the list of all available IBV devices created by
 * mca_btl_openib_build_rdma_addr_list.
 */
extern void mca_btl_openib_free_rdma_addr_list(void);

END_C_DECLS

#endif