Home
last modified time | relevance | path

Searched refs:grh_present (Results 1 – 2 of 2) sorted by relevance

/drivers/infiniband/core/
Dud_header.c319 int grh_present, in ib_ud_header_init() argument
327 grh_present = grh_present && !ip_version; in ib_ud_header_init()
341 grh_present ? IB_LNH_IBA_GLOBAL : IB_LNH_IBA_LOCAL; in ib_ud_header_init()
345 (grh_present ? IB_GRH_BYTES : 0) + in ib_ud_header_init()
355 if (ip_version == 6 || grh_present) { in ib_ud_header_init()
397 header->grh_present = grh_present || (ip_version == 6); in ib_ud_header_init()
433 if (header->grh_present) { in ib_ud_header_pack()
489 header->grh_present = 0; in ib_ud_header_unpack()
493 header->grh_present = 1; in ib_ud_header_unpack()
Duser_mad.c265 packet->mad.hdr.grh_present = !!(mad_recv_wc->wc->wc_flags & IB_WC_GRH); in recv_handler()
266 if (packet->mad.hdr.grh_present) { in recv_handler()
456 if (!hdr1->grh_present && !hdr2->grh_present) in same_destination()
459 if (hdr1->grh_present && hdr2->grh_present) in same_destination()
553 if (packet->mad.hdr.grh_present) { in ib_umad_write()