Lines Matching refs:qp1_hdr
2373 memset(&qp->qp1_hdr, 0, sizeof(qp->qp1_hdr)); in bnxt_re_build_qp1_send_v2()
2412 ip_version, is_udp, 0, &qp->qp1_hdr); in bnxt_re_build_qp1_send_v2()
2415 ether_addr_copy(qp->qp1_hdr.eth.dmac_h, ah->qplib_ah.dmac); in bnxt_re_build_qp1_send_v2()
2416 ether_addr_copy(qp->qp1_hdr.eth.smac_h, qp->qplib_qp.smac); in bnxt_re_build_qp1_send_v2()
2421 qp->qp1_hdr.eth.type = cpu_to_be16(ether_type); in bnxt_re_build_qp1_send_v2()
2423 qp->qp1_hdr.vlan.type = cpu_to_be16(ether_type); in bnxt_re_build_qp1_send_v2()
2424 qp->qp1_hdr.vlan.tag = cpu_to_be16(vlan_id); in bnxt_re_build_qp1_send_v2()
2428 memcpy(qp->qp1_hdr.grh.source_gid.raw, sgid_attr->gid.raw, in bnxt_re_build_qp1_send_v2()
2430 memcpy(qp->qp1_hdr.grh.destination_gid.raw, qplib_ah->dgid.data, in bnxt_re_build_qp1_send_v2()
2432 qp->qp1_hdr.grh.hop_limit = qplib_ah->hop_limit; in bnxt_re_build_qp1_send_v2()
2436 qp->qp1_hdr.ip4.tos = 0; in bnxt_re_build_qp1_send_v2()
2437 qp->qp1_hdr.ip4.id = 0; in bnxt_re_build_qp1_send_v2()
2438 qp->qp1_hdr.ip4.frag_off = htons(IP_DF); in bnxt_re_build_qp1_send_v2()
2439 qp->qp1_hdr.ip4.ttl = qplib_ah->hop_limit; in bnxt_re_build_qp1_send_v2()
2441 memcpy(&qp->qp1_hdr.ip4.saddr, sgid_attr->gid.raw + 12, 4); in bnxt_re_build_qp1_send_v2()
2442 memcpy(&qp->qp1_hdr.ip4.daddr, qplib_ah->dgid.data + 12, 4); in bnxt_re_build_qp1_send_v2()
2443 qp->qp1_hdr.ip4.check = ib_ud_ip4_csum(&qp->qp1_hdr); in bnxt_re_build_qp1_send_v2()
2447 qp->qp1_hdr.udp.dport = htons(ROCE_V2_UDP_DPORT); in bnxt_re_build_qp1_send_v2()
2448 qp->qp1_hdr.udp.sport = htons(0x8CD1); in bnxt_re_build_qp1_send_v2()
2449 qp->qp1_hdr.udp.csum = 0; in bnxt_re_build_qp1_send_v2()
2454 qp->qp1_hdr.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in bnxt_re_build_qp1_send_v2()
2455 qp->qp1_hdr.immediate_present = 1; in bnxt_re_build_qp1_send_v2()
2457 qp->qp1_hdr.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in bnxt_re_build_qp1_send_v2()
2460 qp->qp1_hdr.bth.solicited_event = 1; in bnxt_re_build_qp1_send_v2()
2462 qp->qp1_hdr.bth.pad_count = (4 - payload_size) & 3; in bnxt_re_build_qp1_send_v2()
2465 qp->qp1_hdr.bth.pkey = cpu_to_be16(0xFFFF); in bnxt_re_build_qp1_send_v2()
2466 qp->qp1_hdr.bth.destination_qpn = IB_QP1; in bnxt_re_build_qp1_send_v2()
2467 qp->qp1_hdr.bth.ack_req = 0; in bnxt_re_build_qp1_send_v2()
2470 qp->qp1_hdr.bth.psn = cpu_to_be32(qp->send_psn); in bnxt_re_build_qp1_send_v2()
2473 qp->qp1_hdr.deth.qkey = cpu_to_be32(IB_QP1_QKEY); in bnxt_re_build_qp1_send_v2()
2474 qp->qp1_hdr.deth.source_qpn = IB_QP1; in bnxt_re_build_qp1_send_v2()
2479 ib_ud_header_pack(&qp->qp1_hdr, buf); in bnxt_re_build_qp1_send_v2()