Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_re_build_qp1_send_v2() -> ib_ud_header_pack()

Type Parameter Key Value
PARAM_VALUE 0 header 4096-ptr_max
PARAM_VALUE 0 header->bth.destination_qpn 1
PARAM_VALUE 0 header->bth.opcode 100-101
PARAM_VALUE 0 header->bth.pad_count 0-3
PARAM_VALUE 0 header->bth.pkey u16max
PARAM_VALUE 0 header->bth.psn 0-16777215
PARAM_VALUE 0 header->bth.solicited_event 0-1
PARAM_VALUE 0 header->deth.qkey 2147549184
PARAM_VALUE 0 header->deth.source_qpn 1
PARAM_VALUE 0 header->eth.type 0,2048,33024,34525,35093
PARAM_VALUE 0 header->grh.ip_version 0,6
PARAM_VALUE 0 header->grh.next_header 0,17,27
PARAM_VALUE 0 header->grh_present 0-1
PARAM_VALUE 0 header->immediate_data 0
PARAM_VALUE 0 header->immediate_present 0-1
PARAM_VALUE 0 header->ip4.frag_off 0,16384
PARAM_VALUE 0 header->ip4.hdr_len 0,5
PARAM_VALUE 0 header->ip4.id 0
PARAM_VALUE 0 header->ip4.protocol 0,17
PARAM_VALUE 0 header->ip4.saddr 0-255
PARAM_VALUE 0 header->ip4.tos 0
PARAM_VALUE 0 header->ip4.ttl 0
PARAM_VALUE 0 header->ip4.ver 0,4
PARAM_VALUE 0 header->ipv4_present 0-1
PARAM_VALUE 0 header->lrh.link_next_header 0,2-3
PARAM_VALUE 0 header->lrh_present 0
PARAM_VALUE 0 header->udp.csum 0
PARAM_VALUE 0 header->udp.dport 0,4791
PARAM_VALUE 0 header->udp.sport 0,36049
PARAM_VALUE 0 header->vlan.tag 0-4095
PARAM_VALUE 0 header->vlan.type 0,2048,34525,35093
PARAM_VALUE 1 buf 4096-ptr_max
DATA_SOURCE 1 buf r bnxt_qplib_get_qp1_sq_buf
MEM_ZERO 0 header
PREEMPT_ADD
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &qp->sq_lock
HALF_LOCKED2 &conn->send_lock
HALF_LOCKED2 &gsi->lock
HALF_LOCKED2 &mr->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &rdma->sq_sem
HALF_LOCKED2 bh
HALF_LOCKED2 flags
TYPE_LOCK (struct bnxt_re_qp)->sq_lock

drivers/infiniband/hw/mlx4/qp.c build_mlx_header() -> ib_ud_header_pack()

Type Parameter Key Value
PARAM_VALUE 0 header 4096-ptr_max
PARAM_VALUE 0 header->bth.opcode 100-101
PARAM_VALUE 0 header->bth.pad_count 0-3
PARAM_VALUE 0 header->bth.psn 0-16777215
PARAM_VALUE 0 header->bth.solicited_event 0-1
PARAM_VALUE 0 header->eth.type 0,2048,33024,34525,35093
PARAM_VALUE 0 header->grh.flow_label 0-1048575
PARAM_VALUE 0 header->grh.ip_version 0,6
PARAM_VALUE 0 header->grh.next_header 0,17,27
PARAM_VALUE 0 header->grh_present 0-1
PARAM_VALUE 0 header->immediate_present 0-1
PARAM_VALUE 0 header->ip4.daddr 0-255
PARAM_VALUE 0 header->ip4.frag_off 0,16384
PARAM_VALUE 0 header->ip4.hdr_len 0,5
PARAM_VALUE 0 header->ip4.id 0
PARAM_VALUE 0 header->ip4.protocol 0,17
PARAM_VALUE 0 header->ip4.saddr 0-255
PARAM_VALUE 0 header->ip4.ttl 0
PARAM_VALUE 0 header->ip4.ver 0,4
PARAM_VALUE 0 header->ipv4_present 0-1
PARAM_VALUE 0 header->lrh.link_next_header 0,2-3
PARAM_VALUE 0 header->lrh.service_level 0-15
PARAM_VALUE 0 header->lrh.source_lid 0-127,u16max
PARAM_VALUE 0 header->lrh.virtual_lane 0-15
PARAM_VALUE 0 header->lrh_present 0-1
PARAM_VALUE 0 header->udp.csum 0
PARAM_VALUE 0 header->udp.dport 0,4791
PARAM_VALUE 0 header->udp.sport 0,49152
PARAM_VALUE 0 header->vlan.type 0,2048,34525,35093
BUF_SIZE 1 buf 82
MEM_ZERO 0 header
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &qp->sq.lock
LOCK2 flags
TYPE_LOCK (struct mlx4_ib_wq)->lock

drivers/infiniband/hw/mlx4/qp.c build_sriov_qp0_header() -> ib_ud_header_pack()

Type Parameter Key Value
PARAM_VALUE 0 header 4096-ptr_max
PARAM_VALUE 0 header->bth.opcode 100
PARAM_VALUE 0 header->bth.pad_count 0-3
PARAM_VALUE 0 header->bth.psn 0-16777215
PARAM_VALUE 0 header->bth.solicited_event 0-1
PARAM_VALUE 0 header->eth.type 0,33024
PARAM_VALUE 0 header->grh.ip_version 0,6
PARAM_VALUE 0 header->grh.next_header 0,17,27
PARAM_VALUE 0 header->grh_present 0-1
PARAM_VALUE 0 header->immediate_data 0
PARAM_VALUE 0 header->immediate_present 0
PARAM_VALUE 0 header->ip4.hdr_len 0,5
PARAM_VALUE 0 header->ip4.id 0
PARAM_VALUE 0 header->ip4.protocol 0,17
PARAM_VALUE 0 header->ip4.tos 0
PARAM_VALUE 0 header->ip4.ttl 0
PARAM_VALUE 0 header->ip4.ver 0,4
PARAM_VALUE 0 header->ipv4_present 0-1
PARAM_VALUE 0 header->lrh.destination_lid 0-127
PARAM_VALUE 0 header->lrh.link_next_header 0,2-3
PARAM_VALUE 0 header->lrh.service_level 0-15
PARAM_VALUE 0 header->lrh.source_lid 0-127
PARAM_VALUE 0 header->lrh_present 1
PARAM_VALUE 0 header->udp.csum 0
PARAM_VALUE 0 header->vlan.tag 0
BUF_SIZE 1 buf 82
MEM_ZERO 0 header
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &qp->sq.lock
LOCK2 flags
TYPE_LOCK (struct mlx4_ib_wq)->lock

drivers/infiniband/hw/qedr/qedr_roce_cm.c qedr_gsi_build_packet() -> ib_ud_header_pack()

Type Parameter Key Value
PARAM_VALUE 0 header 7635619940107587584
PARAM_VALUE 0 header->bth.opcode 100
PARAM_VALUE 0 header->bth.pad_count 0-3
PARAM_VALUE 0 header->bth.pkey u16max
PARAM_VALUE 0 header->bth.psn 0-16777215
PARAM_VALUE 0 header->bth.solicited_event 0-1
PARAM_VALUE 0 header->deth.qkey 2147549184
PARAM_VALUE 0 header->deth.source_qpn 1
PARAM_VALUE 0 header->eth.type 2048,33024,34525,35093
PARAM_VALUE 0 header->grh.ip_version 0,6
PARAM_VALUE 0 header->grh.next_header 0,17,27
PARAM_VALUE 0 header->grh_present 0-1
PARAM_VALUE 0 header->immediate_data 0
PARAM_VALUE 0 header->immediate_present 0
PARAM_VALUE 0 header->ip4.frag_off 0,16384
PARAM_VALUE 0 header->ip4.hdr_len 0,5
PARAM_VALUE 0 header->ip4.id 0
PARAM_VALUE 0 header->ip4.protocol 0,17
PARAM_VALUE 0 header->ip4.ver 0,4
PARAM_VALUE 0 header->ipv4_present 0-1
PARAM_VALUE 0 header->lrh.link_next_header 0,2-3
PARAM_VALUE 0 header->lrh_present 0
PARAM_VALUE 0 header->udp.csum 0
PARAM_VALUE 0 header->udp.dport 0,4791
PARAM_VALUE 0 header->vlan.tag 0-4095
PARAM_VALUE 0 header->vlan.type 0,2048,34525,35093
PARAM_VALUE 1 buf 2868571338282242048
BUF_SIZE 1 buf 100
MEM_ZERO 0 header
PREEMPT_ADD
TASK_NOT_RUNNING
LOCK2 &qp->q_lock
HALF_LOCKED2 &conn->send_lock
HALF_LOCKED2 &gsi->lock
HALF_LOCKED2 &mr->mutex
HALF_LOCKED2 &rdma->sq_sem
HALF_LOCKED2 bh
HALF_LOCKED2 flags
TYPE_LOCK (struct qedr_qp)->q_lock

drivers/infiniband/hw/ionic/ionic_controlpath.c ionic_create_ah_cmd() -> ib_ud_header_pack()

Type Parameter Key Value
PARAM_VALUE 0 header 4096-ptr_max
PARAM_VALUE 0 header->bth.opcode 100
PARAM_VALUE 0 header->bth.pad_count 0-3
PARAM_VALUE 0 header->bth.pkey 0
PARAM_VALUE 0 header->bth.psn 0
PARAM_VALUE 0 header->eth.type 2048,33024,34525
PARAM_VALUE 0 header->grh.ip_version 0,6
PARAM_VALUE 0 header->grh.next_header 0,17,27
PARAM_VALUE 0 header->grh_present 0-1
PARAM_VALUE 0 header->immediate_data 0
PARAM_VALUE 0 header->immediate_present 0
PARAM_VALUE 0 header->ip4.frag_off 0,16384
PARAM_VALUE 0 header->ip4.hdr_len 0,5
PARAM_VALUE 0 header->ip4.id 0
PARAM_VALUE 0 header->ip4.protocol 0,17
PARAM_VALUE 0 header->ip4.tot_len u16max
PARAM_VALUE 0 header->ip4.ver 0,4
PARAM_VALUE 0 header->ipv4_present 0-1
PARAM_VALUE 0 header->lrh.link_next_header 0,2-3
PARAM_VALUE 0 header->lrh_present 0
PARAM_VALUE 0 header->udp.csum 0
PARAM_VALUE 0 header->udp.dport 4791
PARAM_VALUE 0 header->udp.sport 28272
PARAM_VALUE 0 header->vlan.type 0,2048,34525
PARAM_VALUE 1 buf 4096-ptr_max
BUF_SIZE 1 buf 4096
BUF_SIZE 1 buf 4096
DATA_SOURCE 1 buf r _kmalloc_noprof
MEM_ZERO 0 header
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/ionic/ionic_controlpath.c ionic_modify_qp_cmd() -> ib_ud_header_pack()

Type Parameter Key Value
PARAM_VALUE 0 header 1-u64max
PARAM_VALUE 0 header->bth.ack_req 0
PARAM_VALUE 0 header->bth.destination_qpn 0
PARAM_VALUE 0 header->bth.mig_req 0
PARAM_VALUE 0 header->bth.opcode 100
PARAM_VALUE 0 header->bth.pad_count 0-3
PARAM_VALUE 0 header->bth.pkey 0
PARAM_VALUE 0 header->bth.psn 0
PARAM_VALUE 0 header->bth.solicited_event 0
PARAM_VALUE 0 header->bth.transport_header_version 0
PARAM_VALUE 0 header->deth.qkey 0
PARAM_VALUE 0 header->deth.source_qpn 0
PARAM_VALUE 0 header->eth.type 2048,33024,34525
PARAM_VALUE 0 header->grh.destination_gid 0
PARAM_VALUE 0 header->grh.ip_version 0,6
PARAM_VALUE 0 header->grh.next_header 0,17,27
PARAM_VALUE 0 header->grh.source_gid 0
PARAM_VALUE 0 header->grh_present 0-1
PARAM_VALUE 0 header->immediate_data 0
PARAM_VALUE 0 header->immediate_present 0
PARAM_VALUE 0 header->ip4.check 0
PARAM_VALUE 0 header->ip4.frag_off 0,16384
PARAM_VALUE 0 header->ip4.hdr_len 0,5
PARAM_VALUE 0 header->ip4.id 0
PARAM_VALUE 0 header->ip4.protocol 0,17
PARAM_VALUE 0 header->ip4.tot_len u16max
PARAM_VALUE 0 header->ip4.ver 0,4
PARAM_VALUE 0 header->ipv4_present 0-1
PARAM_VALUE 0 header->lrh.destination_lid 0
PARAM_VALUE 0 header->lrh.link_next_header 0,2-3
PARAM_VALUE 0 header->lrh.link_version 0
PARAM_VALUE 0 header->lrh.service_level 0
PARAM_VALUE 0 header->lrh.source_lid 0
PARAM_VALUE 0 header->lrh.virtual_lane 0
PARAM_VALUE 0 header->lrh_present 0
PARAM_VALUE 0 header->udp.csum 0
PARAM_VALUE 0 header->udp.dport 4791
PARAM_VALUE 0 header->udp.sport 49152-u16max
PARAM_VALUE 0 header->vlan.type 0,2048,34525
PARAM_VALUE 0 *header->eth.dmac_h 0-255
PARAM_VALUE 0 *header->eth.smac_h 0-255
PARAM_VALUE 1 buf 4096-ptr_max
BUF_SIZE 1 buf 4096
BUF_SIZE 1 buf 4096
DATA_SOURCE 1 buf r _kmalloc_noprof
MEM_ZERO 0 header
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 header->udp.sport 49152-u16max[c]
USER_DATA 0 header->vlan.tag 0-u16max[c][u]
HALF_LOCKED2 &ibqp->qp_sec->mutex

drivers/infiniband/hw/mthca/mthca_qp.c build_mlx_header() -> ib_ud_header_pack()

Type Parameter Key Value
PARAM_VALUE 0 header 4096-ptr_max
PARAM_VALUE 0 header->bth.opcode 100-101
PARAM_VALUE 0 header->bth.pad_count 0-3
PARAM_VALUE 0 header->bth.psn 0-16777215
PARAM_VALUE 0 header->bth.solicited_event 0-1
PARAM_VALUE 0 header->eth.type 0,33024
PARAM_VALUE 0 header->grh.flow_label 0-1048575
PARAM_VALUE 0 header->grh.ip_version 0,6
PARAM_VALUE 0 header->grh.next_header 0,17,27
PARAM_VALUE 0 header->grh_present 0-1
PARAM_VALUE 0 header->immediate_present 0-1
PARAM_VALUE 0 header->ip4.hdr_len 0,5
PARAM_VALUE 0 header->ip4.id 0
PARAM_VALUE 0 header->ip4.protocol 0,17
PARAM_VALUE 0 header->ip4.tos 0
PARAM_VALUE 0 header->ip4.ttl 0
PARAM_VALUE 0 header->ip4.ver 0,4
PARAM_VALUE 0 header->ipv4_present 0-1
PARAM_VALUE 0 header->lrh.link_next_header 0,2-3
PARAM_VALUE 0 header->lrh.service_level 0-15
PARAM_VALUE 0 header->lrh.source_lid 0-127,u16max
PARAM_VALUE 0 header->lrh.virtual_lane 0,15
PARAM_VALUE 0 header->lrh_present 1
PARAM_VALUE 0 header->udp.csum 0
PARAM_VALUE 0 header->vlan.tag 0
PARAM_VALUE 1 buf 4096-ptr_max
MEM_ZERO 0 header
PREEMPT_ADD
TASK_NOT_RUNNING
LOCK2 &qp->sq.lock
HALF_LOCKED2 &conn->send_lock
HALF_LOCKED2 &gsi->lock
HALF_LOCKED2 &mr->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &rdma->sq_sem
HALF_LOCKED2 bh
HALF_LOCKED2 flags
TYPE_LOCK (struct mthca_wq)->lock