Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/infiniband/hw/mthca/
Dmthca_mad.c114 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
115 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
116 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { in smp_snoop()
117 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop()
141 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop()
153 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
154 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
155 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && in node_desc_override()
156 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
168 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
[all …]
/linux-6.6.21/include/trace/events/
Dib_umad.h18 struct ib_mad_hdr *mad_hdr),
19 TP_ARGS(file, umad_hdr, mad_hdr),
74 __entry->base_version = mad_hdr->base_version;
75 __entry->mgmt_class = mad_hdr->mgmt_class;
76 __entry->class_version = mad_hdr->class_version;
77 __entry->method = mad_hdr->method;
78 __entry->mad_status = mad_hdr->status;
79 __entry->class_specific = mad_hdr->class_specific;
80 __entry->tid = mad_hdr->tid;
81 __entry->attr_id = mad_hdr->attr_id;
[all …]
Dib_mad.h185 struct ib_mad_hdr *mad_hdr),
186 TP_ARGS(qp_info, wc, mad_hdr),
213 __entry->base_version = mad_hdr->base_version;
214 __entry->mgmt_class = mad_hdr->mgmt_class;
215 __entry->class_version = mad_hdr->class_version;
216 __entry->method = mad_hdr->method;
217 __entry->status = mad_hdr->status;
218 __entry->class_specific = mad_hdr->class_specific;
219 __entry->tid = mad_hdr->tid;
220 __entry->attr_id = mad_hdr->attr_id;
[all …]
/linux-6.6.21/drivers/infiniband/hw/mlx4/
Dcm.c87 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id()
91 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id()
102 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id()
106 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id()
117 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_remote_comm_id()
121 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_remote_comm_id()
132 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_remote_comm_id()
136 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_remote_comm_id()
309 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_multiplex_cm_handler()
310 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.c231 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
232 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
233 mad->mad_hdr.method == IB_MGMT_METHOD_SET) in smp_snoop()
234 switch (mad->mad_hdr.attr_id) { in smp_snoop()
372 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
373 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
374 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && in node_desc_override()
375 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
386 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
423 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler()
[all …]
/linux-6.6.21/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c135 return be32_to_cpu(recvd_mad->mad_hdr.attr_mod) & 0xff; in vema_get_vport_num()
339 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_set_veswport_info()
362 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_mac_entries()
374 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_mac_entries()
397 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_set_mac_entries()
404 rsp_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; in vema_set_mac_entries()
406 rsp_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; in vema_set_mac_entries()
431 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_set_delete_vesw()
465 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_mac_list()
502 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_summary_counters()
[all …]
Dopa_vnic_encap.h475 struct ib_mad_hdr mad_hdr; member
517 struct ib_mad_hdr mad_hdr; member
/linux-6.6.21/drivers/infiniband/core/
Dmad_rmpp.c117 memcpy(ack, &data->mad_hdr, msg->hdr_len); in format_ack()
119 ack->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in format_ack()
136 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv()
163 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg()
192 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in ack_ds_ack()
226 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in nack_recv()
280 struct ib_mad_hdr *mad_hdr; in create_rmpp_recv() local
308 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv()
309 rmpp_recv->tid = mad_hdr->tid; in create_rmpp_recv()
312 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.c1531 const struct ib_mad_hdr *mad_hdr) in find_mad_agent() argument
1536 if (ib_response_mad(mad_hdr)) { in find_mad_agent()
1543 hi_tid = be64_to_cpu(mad_hdr->tid) >> 32; in find_mad_agent()
1562 if (mad_hdr->class_version >= MAX_MGMT_VERSION) in find_mad_agent()
1564 if (!is_vendor_class(mad_hdr->mgmt_class)) { in find_mad_agent()
1566 mad_hdr->class_version].class; in find_mad_agent()
1569 if (convert_mgmt_class(mad_hdr->mgmt_class) >= in find_mad_agent()
1573 mad_hdr->mgmt_class)]; in find_mad_agent()
1575 mad_agent = method->agent[mad_hdr->method & in find_mad_agent()
1579 mad_hdr->class_version].vendor; in find_mad_agent()
[all …]
Dsa_query.c917 mad->mad_hdr.method |= IB_MGMT_METHOD_RESP; in ib_nl_process_good_resolve_rsp()
937 mad->mad_hdr.method |= IB_MGMT_METHOD_RESP; in ib_nl_process_good_resolve_rsp()
1321 mad->mad_hdr.base_version = OPA_MGMT_BASE_VERSION; in init_mad()
1322 mad->mad_hdr.class_version = OPA_SA_CLASS_VERSION; in init_mad()
1324 mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION; in init_mad()
1325 mad->mad_hdr.class_version = IB_SA_CLASS_VERSION; in init_mad()
1327 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in init_mad()
1329 mad->mad_hdr.tid = in init_mad()
1581 mad->mad_hdr.method = IB_MGMT_METHOD_GET; in ib_sa_path_rec_get()
1582 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); in ib_sa_path_rec_get()
[all …]
Dagent.h47 extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh,
Duser_mad.c135 struct ib_mad_hdr mad_hdr; member
334 offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); in copy_recv_mad()
348 trace_ib_umad_read_recv(file, &packet->mad.hdr, &recv_buf->mad->mad_hdr); in copy_recv_mad()
569 hdr_len = ib_get_mad_data_offset(rmpp_mad_hdr->mad_hdr.mgmt_class); in ib_umad_write()
571 if (ib_is_mad_class_rmpp(rmpp_mad_hdr->mad_hdr.mgmt_class) in ib_umad_write()
623 rmpp_mad_hdr->mad_hdr.tid = *tid; in ib_umad_write()
627 && ib_is_mad_class_rmpp(rmpp_mad_hdr->mad_hdr.mgmt_class) in ib_umad_write()
Dsysfs.c573 in_mad->mad_hdr.base_version = 1; in get_perf_mad()
574 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in get_perf_mad()
575 in_mad->mad_hdr.class_version = 1; in get_perf_mad()
576 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; in get_perf_mad()
577 in_mad->mad_hdr.attr_id = attr; in get_perf_mad()
Dcm.c4006 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { in cm_recv_handler()
4049 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id); in cm_recv_handler()
/linux-6.6.21/include/rdma/
Dib_mad.h177 struct ib_mad_hdr mad_hdr; member
182 struct ib_mad_hdr mad_hdr; member
187 struct ib_mad_hdr mad_hdr; member
193 struct ib_mad_hdr mad_hdr; member
199 struct ib_mad_hdr mad_hdr; member
206 struct ib_mad_hdr mad_hdr; member
Dib_pma.h29 struct ib_mad_hdr mad_hdr; member
/linux-6.6.21/drivers/infiniband/hw/mlx5/
Dmad.c48 if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED && in can_do_mad_ifc()
49 in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in can_do_mad_ifc()
198 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd()
207 if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { in process_pma_cmd()
252 u8 mgmt_class = in->mad_hdr.mgmt_class; in mlx5_ib_process_mad()
253 u8 method = in->mad_hdr.method; in mlx5_ib_process_mad()
273 if (in->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in mlx5_ib_process_mad()
300 out->mad_hdr.status |= cpu_to_be16(1 << 15); in mlx5_ib_process_mad()
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dmad.c2276 struct ib_mad_hdr mad_hdr; member
2568 if (pmp->mad_hdr.attr_mod != 0) in pma_get_opa_classportinfo()
2569 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_classportinfo()
2692 u32 nports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; in pma_get_opa_portstatus()
2705 pmp->mad_hdr.status |= OPA_PM_STATUS_REQUEST_TOO_LARGE; in pma_get_opa_portstatus()
2711 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_portstatus()
2955 num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; in pma_get_opa_datacounters()
2964 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
2972 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
2985 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
[all …]
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_mad.c1160 if (pmp->mad_hdr.attr_mod != 0) in pma_get_classportinfo()
1161 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_classportinfo()
1197 if (pmp->mad_hdr.attr_mod != 0 || port_select != port) { in pma_get_portsamplescontrol()
1198 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_portsamplescontrol()
1233 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) { in pma_set_portsamplescontrol()
1234 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_set_portsamplescontrol()
1464 if (pmp->mad_hdr.attr_mod != 0 || port_select != port) in pma_get_portcounters()
1465 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_portcounters()
1538 u32 port_select = be32_to_cpu(pmp->mad_hdr.attr_mod) & 0xFF; in pma_get_portcounters_cong()
1547 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; in pma_get_portcounters_cong()
[all …]
/linux-6.6.21/drivers/infiniband/ulp/srpt/
Dib_dm_mad.h79 struct ib_mad_hdr mad_hdr; member
Dib_srpt.c286 mad->mad_hdr.status = 0; in srpt_get_class_port_info()
311 mad->mad_hdr.status = 0; in srpt_get_iou()
334 mad->mad_hdr.status in srpt_get_ioc()
340 mad->mad_hdr.status in srpt_get_ioc()
372 mad->mad_hdr.status = 0; in srpt_get_ioc()
394 mad->mad_hdr.status in srpt_get_svc_entries()
400 mad->mad_hdr.status in srpt_get_svc_entries()
414 mad->mad_hdr.status = 0; in srpt_get_svc_entries()
430 attr_id = be16_to_cpu(rq_mad->mad_hdr.attr_id); in srpt_mgmt_method_get()
439 slot = be32_to_cpu(rq_mad->mad_hdr.attr_mod); in srpt_mgmt_method_get()
[all …]
/linux-6.6.21/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c261 if (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT) { in ocrdma_process_mad()