Home
last modified time | relevance | path

Searched refs:mad_hdr (Results 1 – 23 of 23) sorted by relevance

/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_mad.c112 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
113 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
114 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { in smp_snoop()
115 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop()
139 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop()
151 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
152 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
153 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && in node_desc_override()
154 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
165 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
[all …]
/linux-4.4.14/drivers/staging/rdma/ehca/
Dehca_sqp.c123 struct ib_mad_hdr mad_hdr; member
156 ehca_dbg(ibdev, "method=%x", in_perf->mad_hdr.method); in ehca_process_perf()
160 if (in_perf->mad_hdr.class_version != 1) { in ehca_process_perf()
162 in_perf->mad_hdr.class_version); in ehca_process_perf()
163 out_perf->mad_hdr.status = IB_MAD_STATUS_UNSUP_VERSION; in ehca_process_perf()
167 switch (in_perf->mad_hdr.method) { in ehca_process_perf()
171 out_perf->mad_hdr.attr_id = IB_PMA_CLASS_PORT_INFO; in ehca_process_perf()
172 out_perf->mad_hdr.status = IB_MAD_STATUS_REDIRECT; in ehca_process_perf()
209 out_perf->mad_hdr.status = IB_MAD_STATUS_UNSUP_METHOD; in ehca_process_perf()
214 out_perf->mad_hdr.method = IB_MGMT_METHOD_GET_RESP; in ehca_process_perf()
[all …]
Dehca_reqs.c118 struct ib_mad_hdr *mad_hdr = ud_wrmad_hdr; in trace_ud_wr() local
124 if (mad_hdr) { in trace_ud_wr()
129 idx, mad_hdr->base_version, in trace_ud_wr()
130 mad_hdr->mgmt_class, in trace_ud_wr()
131 mad_hdr->class_version, mad_hdr->method, in trace_ud_wr()
132 mad_hdr->status, mad_hdr->class_specific, in trace_ud_wr()
133 mad_hdr->tid, mad_hdr->attr_id, in trace_ud_wr()
134 mad_hdr->resv, in trace_ud_wr()
135 mad_hdr->attr_mod); in trace_ud_wr()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dcm.c77 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id()
81 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id()
92 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id()
96 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id()
107 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_remote_comm_id()
111 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_remote_comm_id()
122 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_remote_comm_id()
126 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_remote_comm_id()
324 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_multiplex_cm_handler()
325 mad->mad_hdr.attr_id == CM_REP_ATTR_ID || in mlx4_ib_multiplex_cm_handler()
[all …]
Dmcg.c265 mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); in send_join_to_wire()
266 group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ in send_join_to_wire()
286 mad.mad_hdr.base_version = 1; in send_leave_to_wire()
287 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_leave_to_wire()
288 mad.mad_hdr.class_version = 2; in send_leave_to_wire()
289 mad.mad_hdr.method = IB_SA_METHOD_DELETE; in send_leave_to_wire()
290 mad.mad_hdr.status = cpu_to_be16(0); in send_leave_to_wire()
291 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_leave_to_wire()
292 mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); in send_leave_to_wire()
293 group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ in send_leave_to_wire()
[all …]
Dmad.c227 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
228 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
229 mad->mad_hdr.method == IB_MGMT_METHOD_SET) in smp_snoop()
230 switch (mad->mad_hdr.attr_id) { in smp_snoop()
342 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
343 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
344 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && in node_desc_override()
345 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
354 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
391 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler()
[all …]
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dmad.c77 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) in mlx5_ib_process_mad()
80 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in mlx5_ib_process_mad()
81 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in mlx5_ib_process_mad()
82 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in mlx5_ib_process_mad()
83 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && in mlx5_ib_process_mad()
84 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) in mlx5_ib_process_mad()
89 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in mlx5_ib_process_mad()
91 } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || in mlx5_ib_process_mad()
92 in_mad->mad_hdr.mgmt_class == MLX5_IB_VENDOR_CLASS1 || in mlx5_ib_process_mad()
93 in_mad->mad_hdr.mgmt_class == MLX5_IB_VENDOR_CLASS2 || in mlx5_ib_process_mad()
[all …]
/linux-4.4.14/drivers/infiniband/core/
Dmad_rmpp.c122 memcpy(ack, &data->mad_hdr, msg->hdr_len); in format_ack()
124 ack->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in format_ack()
141 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv()
168 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg()
197 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in ack_ds_ack()
230 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in nack_recv()
288 struct ib_mad_hdr *mad_hdr; in create_rmpp_recv() local
316 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv()
317 rmpp_recv->tid = mad_hdr->tid; in create_rmpp_recv()
320 rmpp_recv->mgmt_class = mad_hdr->mgmt_class; in create_rmpp_recv()
[all …]
Dagent.c81 void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, in agent_send_response() argument
109 if (opa && mad_hdr->base_version != OPA_MGMT_BASE_VERSION) in agent_send_response()
116 mad_hdr->base_version); in agent_send_response()
122 memcpy(send_buf->mad, mad_hdr, resp_mad_len); in agent_send_response()
Dmad.c1707 const struct ib_mad_hdr *mad_hdr) in find_mad_agent() argument
1713 if (ib_response_mad(mad_hdr)) { in find_mad_agent()
1721 hi_tid = be64_to_cpu(mad_hdr->tid) >> 32; in find_mad_agent()
1740 if (mad_hdr->class_version >= MAX_MGMT_VERSION) in find_mad_agent()
1742 if (!is_vendor_class(mad_hdr->mgmt_class)) { in find_mad_agent()
1744 mad_hdr->class_version].class; in find_mad_agent()
1747 if (convert_mgmt_class(mad_hdr->mgmt_class) >= in find_mad_agent()
1751 mad_hdr->mgmt_class)]; in find_mad_agent()
1753 mad_agent = method->agent[mad_hdr->method & in find_mad_agent()
1757 mad_hdr->class_version].vendor; in find_mad_agent()
[all …]
Dsa_query.c650 mad->mad_hdr.method |= in ib_nl_process_good_resolve_rsp()
1079 mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION; in init_mad()
1080 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in init_mad()
1081 mad->mad_hdr.class_version = IB_SA_CLASS_VERSION; in init_mad()
1084 mad->mad_hdr.tid = in init_mad()
1239 mad->mad_hdr.method = IB_MGMT_METHOD_GET; in ib_sa_path_rec_get()
1240 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); in ib_sa_path_rec_get()
1364 mad->mad_hdr.method = method; in ib_sa_service_rec_query()
1365 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC); in ib_sa_service_rec_query()
1456 mad->mad_hdr.method = method; in ib_sa_mcmember_rec_query()
[all …]
Dagent.h47 extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh,
Dsysfs.c343 in_mad->mad_hdr.base_version = 1; in show_pma_counter()
344 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in show_pma_counter()
345 in_mad->mad_hdr.class_version = 1; in show_pma_counter()
346 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; in show_pma_counter()
347 in_mad->mad_hdr.attr_id = cpu_to_be16(0x12); /* PortCounters */ in show_pma_counter()
Duser_mad.c297 offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); in copy_recv_mad()
511 hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in ib_umad_write()
513 if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
565 rmpp_mad->mad_hdr.tid = *tid; in ib_umad_write()
569 && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
Dcm.c3494 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { in cm_recv_handler()
3536 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id); in cm_recv_handler()
/linux-4.4.14/include/rdma/
Dib_mad.h204 struct ib_mad_hdr mad_hdr; member
209 struct ib_mad_hdr mad_hdr; member
214 struct ib_mad_hdr mad_hdr; member
220 struct ib_mad_hdr mad_hdr; member
226 struct ib_mad_hdr mad_hdr; member
233 struct ib_mad_hdr mad_hdr; member
Dib_pma.h55 struct ib_mad_hdr mad_hdr; member
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_mad.c806 if (pmp->mad_hdr.attr_mod != 0) in recv_pma_get_classportinfo()
807 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_classportinfo()
847 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_get_portsamplescontrol()
849 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_portsamplescontrol()
894 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_set_portsamplescontrol()
896 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_set_portsamplescontrol()
1056 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_get_portcounters()
1058 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_portcounters()
1142 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_get_portcounters_ext()
1144 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_portcounters_ext()
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_mad.c1159 if (pmp->mad_hdr.attr_mod != 0) in pma_get_classportinfo()
1160 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_classportinfo()
1194 if (pmp->mad_hdr.attr_mod != 0 || port_select != port) { in pma_get_portsamplescontrol()
1195 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_portsamplescontrol()
1230 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) { in pma_set_portsamplescontrol()
1231 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_set_portsamplescontrol()
1461 if (pmp->mad_hdr.attr_mod != 0 || port_select != port) in pma_get_portcounters()
1462 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_portcounters()
1535 u32 port_select = be32_to_cpu(pmp->mad_hdr.attr_mod) & 0xFF; in pma_get_portcounters_cong()
1544 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; in pma_get_portcounters_cong()
[all …]
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dmad.c1944 struct ib_mad_hdr mad_hdr; member
2253 if (pmp->mad_hdr.attr_mod != 0) in pma_get_opa_classportinfo()
2254 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_classportinfo()
2325 u32 nports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; in pma_get_opa_portstatus()
2337 pmp->mad_hdr.status |= OPA_PM_STATUS_REQUEST_TOO_LARGE; in pma_get_opa_portstatus()
2343 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_portstatus()
2584 num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; in pma_get_opa_datacounters()
2590 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
2599 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
2612 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
[all …]
/linux-4.4.14/drivers/infiniband/ulp/srpt/
Dib_dm_mad.h79 struct ib_mad_hdr mad_hdr; member
Dib_srpt.c287 mad->mad_hdr.status = 0; in srpt_get_class_port_info()
311 mad->mad_hdr.status = 0; in srpt_get_iou()
330 mad->mad_hdr.status in srpt_get_ioc()
336 mad->mad_hdr.status in srpt_get_ioc()
362 mad->mad_hdr.status = 0; in srpt_get_ioc()
379 mad->mad_hdr.status in srpt_get_svc_entries()
385 mad->mad_hdr.status in srpt_get_svc_entries()
399 mad->mad_hdr.status = 0; in srpt_get_svc_entries()
415 attr_id = be16_to_cpu(rq_mad->mad_hdr.attr_id); in srpt_mgmt_method_get()
424 slot = be32_to_cpu(rq_mad->mad_hdr.attr_mod); in srpt_mgmt_method_get()
[all …]
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c245 switch (in_mad->mad_hdr.mgmt_class) { in ocrdma_process_mad()