Searched refs:umad_len (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/contrib/rdmacm-mux/ |
H A D | main.c | 303 static int get_fd(const char *mad, int umad_len, int *fd, __be64 *gid_ifid) in get_fd() argument 311 if (umad_len <= sizeof(*hdr)) { in get_fd() 319 if (unlikely(umad_len < sizeof(*hdr) + CM_REQ_DGID_POS + in get_fd() 323 "Invalid MAD packet size (%d) for attr_id 0x%x\n", umad_len, in get_fd() 332 if (unlikely(umad_len < sizeof(*hdr) + CM_SIDR_REQ_DGID_POS + in get_fd() 336 "Invalid MAD packet size (%d) for attr_id 0x%x\n", umad_len, in get_fd() 356 if (unlikely(umad_len < sizeof(*hdr) + sizeof(comm_id))) { in get_fd() 359 "Invalid MAD packet size (%d) for attr_id 0x%x\n", umad_len, in get_fd() 391 msg.umad_len = sizeof(msg.umad.mad); in umad_recv_thread_func() 405 rc = get_fd(msg.umad.mad, msg.umad_len, &fd, in umad_recv_thread_func() [all …]
|
H A D | rdmacm-mux.h | 57 int umad_len; member
|
/openbmc/qemu/hw/rdma/ |
H A D | rdma_backend.c | 447 msg.umad_len = sge[0].length + sge[1].length; in mad_send() 449 if (msg.umad_len > sizeof(msg.umad.mad)) { in mad_send() 475 trace_mad_message("send", msg.umad.mad, msg.umad_len); in mad_send() 1112 trace_mad_message("recv", msg->umad.mad, msg->umad_len); in process_incoming_mad_req() 1130 if (!mad || bctx->sge.length < msg->umad_len + MAD_HDR_SIZE) { in process_incoming_mad_req() 1139 msg->umad_len); in process_incoming_mad_req() 1140 memcpy(&mad[MAD_HDR_SIZE], msg->umad.mad, msg->umad_len); in process_incoming_mad_req() 1143 wc.byte_len = msg->umad_len; in process_incoming_mad_req()
|