umad_set_grh_net()
sets the GRH fields (grh_present, gid, hop_limit, traffic_class, flow_label)
within the specified
umad
buffer based on the
mad_addr
supplied. The provided
mad_addr
fields are expected to be in network order.
If the
mad_addr
pointer supplied is NULL, no GRH is set.
The argument
mad_addr
is a pointer to an
ib_mad_addr_t
struct, as specified in <infiniband/umad.h>.
The argument
umad
is a pointer to an
ib_user_mad_t
struct, as specified in
<infiniband/umad.h>.