1UMAD_SET_GRH_NET(3)       OpenIB Programmer's Manual       UMAD_SET_GRH_NET(3)
2
3
4

NAME

6       umad_set_grh_net  -  set  GRH  fields  within umad buffer using network
7       ordering
8

SYNOPSIS

10       #include <infiniband/umad.h>
11
12       int umad_set_grh_net(void *umad, void *mad_addr);
13

DESCRIPTION

15       umad_set_grh_net() sets the GRH fields  (grh_present,  gid,  hop_limit,
16       traffic_class,  flow_label)  within  the specified umad buffer based on
17       the mad_addr supplied. The provided mad_addr fields are expected to  be
18       in  network order.  If the mad_addr pointer supplied is NULL, no GRH is
19       set.  The argument mad_addr is a pointer to an ib_mad_addr_t struct, as
20       specified in <infiniband/umad.h>.  The argument umad is a pointer to an
21       ib_user_mad_t struct, as specified in <infiniband/umad.h>.
22
23       typedef struct ib_mad_addr {
24               uint32_t qpn;
25               uint32_t qkey;
26               uint16_t lid;
27               uint8_t  sl;
28               uint8_t  path_bits;
29               uint8_t  grh_present;
30               uint8_t  gid_index;
31               uint8_t  hop_limit;
32               uint8_t  traffic_class;
33               uint8_t  gid[16];
34               uint32_t flow_label;
35       } ib_mad_addr_t;
36
37       typedef struct ib_user_mad {
38               uint32_t agent_id;
39               uint32_t status;
40               uint32_t timeout_ms;
41               uint32_t retries;
42               uint32_t length;
43               ib_mad_addr_t addr;
44               uint8_t  data[0];
45       } ib_user_mad_t;
46

RETURN VALUE

48       umad_set_grh_net() returns 0  on  success,  and  a  negative  value  on
49       errors. Currently, there are no errors indicated.
50

KNOWN BUGS

52       Not implemented.
53

SEE ALSO

55       umad_set_grh(3)
56

AUTHOR

58       Hal Rosenstock <halr@voltaire.com>
59
60
61
62OpenIB                           May 24, 2007              UMAD_SET_GRH_NET(3)
Impressum