• Home
  • Raw
  • Download

Lines Matching refs:qp1_hdr

1857 	memset(&qp->qp1_hdr, 0, sizeof(qp->qp1_hdr));  in bnxt_re_build_qp1_send_v2()
1896 ip_version, is_udp, 0, &qp->qp1_hdr); in bnxt_re_build_qp1_send_v2()
1899 ether_addr_copy(qp->qp1_hdr.eth.dmac_h, ah->qplib_ah.dmac); in bnxt_re_build_qp1_send_v2()
1900 ether_addr_copy(qp->qp1_hdr.eth.smac_h, qp->qplib_qp.smac); in bnxt_re_build_qp1_send_v2()
1905 qp->qp1_hdr.eth.type = cpu_to_be16(ether_type); in bnxt_re_build_qp1_send_v2()
1907 qp->qp1_hdr.vlan.type = cpu_to_be16(ether_type); in bnxt_re_build_qp1_send_v2()
1908 qp->qp1_hdr.vlan.tag = cpu_to_be16(vlan_id); in bnxt_re_build_qp1_send_v2()
1912 memcpy(qp->qp1_hdr.grh.source_gid.raw, sgid_attr->gid.raw, in bnxt_re_build_qp1_send_v2()
1914 memcpy(qp->qp1_hdr.grh.destination_gid.raw, qplib_ah->dgid.data, in bnxt_re_build_qp1_send_v2()
1916 qp->qp1_hdr.grh.hop_limit = qplib_ah->hop_limit; in bnxt_re_build_qp1_send_v2()
1920 qp->qp1_hdr.ip4.tos = 0; in bnxt_re_build_qp1_send_v2()
1921 qp->qp1_hdr.ip4.id = 0; in bnxt_re_build_qp1_send_v2()
1922 qp->qp1_hdr.ip4.frag_off = htons(IP_DF); in bnxt_re_build_qp1_send_v2()
1923 qp->qp1_hdr.ip4.ttl = qplib_ah->hop_limit; in bnxt_re_build_qp1_send_v2()
1925 memcpy(&qp->qp1_hdr.ip4.saddr, sgid_attr->gid.raw + 12, 4); in bnxt_re_build_qp1_send_v2()
1926 memcpy(&qp->qp1_hdr.ip4.daddr, qplib_ah->dgid.data + 12, 4); in bnxt_re_build_qp1_send_v2()
1927 qp->qp1_hdr.ip4.check = ib_ud_ip4_csum(&qp->qp1_hdr); in bnxt_re_build_qp1_send_v2()
1931 qp->qp1_hdr.udp.dport = htons(ROCE_V2_UDP_DPORT); in bnxt_re_build_qp1_send_v2()
1932 qp->qp1_hdr.udp.sport = htons(0x8CD1); in bnxt_re_build_qp1_send_v2()
1933 qp->qp1_hdr.udp.csum = 0; in bnxt_re_build_qp1_send_v2()
1938 qp->qp1_hdr.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in bnxt_re_build_qp1_send_v2()
1939 qp->qp1_hdr.immediate_present = 1; in bnxt_re_build_qp1_send_v2()
1941 qp->qp1_hdr.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in bnxt_re_build_qp1_send_v2()
1944 qp->qp1_hdr.bth.solicited_event = 1; in bnxt_re_build_qp1_send_v2()
1946 qp->qp1_hdr.bth.pad_count = (4 - payload_size) & 3; in bnxt_re_build_qp1_send_v2()
1949 qp->qp1_hdr.bth.pkey = cpu_to_be16(0xFFFF); in bnxt_re_build_qp1_send_v2()
1950 qp->qp1_hdr.bth.destination_qpn = IB_QP1; in bnxt_re_build_qp1_send_v2()
1951 qp->qp1_hdr.bth.ack_req = 0; in bnxt_re_build_qp1_send_v2()
1954 qp->qp1_hdr.bth.psn = cpu_to_be32(qp->send_psn); in bnxt_re_build_qp1_send_v2()
1957 qp->qp1_hdr.deth.qkey = cpu_to_be32(IB_QP1_QKEY); in bnxt_re_build_qp1_send_v2()
1958 qp->qp1_hdr.deth.source_qpn = IB_QP1; in bnxt_re_build_qp1_send_v2()
1963 ib_ud_header_pack(&qp->qp1_hdr, buf); in bnxt_re_build_qp1_send_v2()