Home
last modified time | relevance | path

Searched refs:mgmt_class (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v5.15/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()
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()
168 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
221 if (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in mthca_process_mad()
222 in->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in mthca_process_mad()
236 } else if (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || in mthca_process_mad()
237 in->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS1 || in mthca_process_mad()
238 in->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS2) { in mthca_process_mad()
[all …]
Dmthca_provider.c56 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in init_query_mad()
/Linux-v5.15/include/trace/events/
Dib_mad.h30 __field(u8, mgmt_class)
69 __entry->mgmt_class =
70 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class;
97 __entry->base_version, __entry->mgmt_class,
128 __field(u8, mgmt_class)
156 __entry->mgmt_class =
157 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class;
178 __entry->base_version, __entry->mgmt_class,
191 __field(u8, mgmt_class)
216 __entry->mgmt_class = mad_hdr->mgmt_class;
[all …]
Dib_umad.h39 __field(u8, mgmt_class)
75 __entry->mgmt_class = mad_hdr->mgmt_class;
100 __entry->base_version, __entry->mgmt_class,
/Linux-v5.15/drivers/infiniband/core/
Dmad.c109 u8 mgmt_class);
149 static inline u8 convert_mgmt_class(u8 mgmt_class) in convert_mgmt_class() argument
152 return mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE ? in convert_mgmt_class()
153 0 : mgmt_class; in convert_mgmt_class()
168 static int vendor_class_index(u8 mgmt_class) in vendor_class_index() argument
170 return mgmt_class - IB_MGMT_CLASS_VENDOR_RANGE2_START; in vendor_class_index()
173 static int is_vendor_class(u8 mgmt_class) in is_vendor_class() argument
175 if ((mgmt_class < IB_MGMT_CLASS_VENDOR_RANGE2_START) || in is_vendor_class()
176 (mgmt_class > IB_MGMT_CLASS_VENDOR_RANGE2_END)) in is_vendor_class()
213 ((hdr->mgmt_class == IB_MGMT_CLASS_BM) && in ib_response_mad()
[all …]
Duser_mad.c329 offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); in copy_recv_mad()
471 (hdr->mgmt_class != sent_hdr->mgmt_class)) in is_duplicate()
564 hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in ib_umad_write()
566 if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
622 && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
720 if (ureq.mgmt_class) { in ib_umad_reg_agent()
722 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent()
740 ureq.mgmt_class ? &req : NULL, in ib_umad_reg_agent()
833 if (ureq.mgmt_class) { in ib_umad_reg_agent2()
835 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent2()
[all …]
Dmad_rmpp.c67 u8 mgmt_class; member
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()
312 rmpp_recv->mgmt_class = mad_hdr->mgmt_class; in create_rmpp_recv()
333 rmpp_recv->mgmt_class == mad_hdr->mgmt_class && in find_rmpp_recv()
436 hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in get_mad_len()
857 rmpp_recv->mgmt_class != mad_hdr->mgmt_class || in init_newwin()
/Linux-v5.15/samples/bpf/
Dibumad_kern.c64 u8 mgmt_class; member
81 u8 class = ctx->mgmt_class; in on_ib_umad_read_recv()
101 u8 class = ctx->mgmt_class; in on_ib_umad_read_send()
121 u8 class = ctx->mgmt_class; in on_ib_umad_write()
/Linux-v5.15/include/rdma/
Dopa_smi.h24 u8 mgmt_class; member
102 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in opa_get_smp_data()
110 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in opa_get_smp_data_size()
118 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in opa_get_smp_header_size()
Dib_mad.h139 u8 mgmt_class; member
645 u8 mgmt_class; member
783 int ib_is_mad_class_rmpp(u8 mgmt_class);
793 int ib_get_mad_data_offset(u8 mgmt_class);
Dib_smi.h20 u8 mgmt_class; member
/Linux-v5.15/include/uapi/rdma/
Dib_user_mad.h189 __u8 mgmt_class; member
224 __u8 mgmt_class; member
/Linux-v5.15/drivers/infiniband/hw/mlx4/
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()
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()
386 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
707 if (mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_CM) { in mlx4_ib_demux_mad()
770 switch (mad->mad_hdr.mgmt_class) { in mlx4_ib_demux_mad()
780 slave, mad->mad_hdr.mgmt_class, in mlx4_ib_demux_mad()
803 "for slave:%d\n", mad->mad_hdr.mgmt_class, slave); in mlx4_ib_demux_mad()
837 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad()
[all …]
Dmcg.c287 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_leave_to_wire()
328 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_reply_to_slave()
/Linux-v5.15/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()
225 u8 mgmt_class = in->mad_hdr.mgmt_class; in mlx5_ib_process_mad() local
236 switch (mgmt_class) { in mlx5_ib_process_mad()
272 if (mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in mlx5_ib_process_mad()
/Linux-v5.15/drivers/infiniband/hw/qib/
Dqib_mad.h121 u8 mgmt_class; member
Dqib_mad.c47 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply()
59 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply_failure()
94 smp->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in qib_send_trap()
184 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in qib_bad_mkey()
2372 switch (in->mad_hdr.mgmt_class) { in qib_process_mad()
Dqib_ud.c500 smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in qib_ud_rcv()
/Linux-v5.15/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c261 if (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT) { in ocrdma_process_mad()
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Dud.c746 if (smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE && in opa_smp_check()
747 smp->mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED) { in opa_smp_check()
911 smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in hfi1_ud_rcv()
Dmad.c46 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply()
312 smp->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in send_trap()
455 if (mad->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in bad_mkey()
4359 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in is_local_mad()
4797 switch (in_mad->mad_hdr.mgmt_class) { in hfi1_process_opa_mad()
4838 switch (in_mad->mad_hdr.mgmt_class) { in hfi1_process_ib_mad()
/Linux-v5.15/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c808 trap_mad->mad_hdr.mgmt_class = OPA_MGMT_CLASS_INTEL_EMA; in opa_vnic_vema_send_trap()
924 .mgmt_class = OPA_MGMT_CLASS_INTEL_EMA, in vema_register()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c919 smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED && in mlx4_MAD_IFC_wrapper()
1010 if (!(smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED && in mlx4_MAD_IFC_wrapper()
1013 slave, smp->mgmt_class, smp->method, in mlx4_MAD_IFC_wrapper()
Dport.c2052 inmad->mgmt_class = 0x1; in mlx4_get_module_id()
2170 inmad->mgmt_class = 0x1; in mlx4_get_module_info()
/Linux-v5.15/include/linux/mlx4/
Ddevice.h999 u8 mgmt_class; member

12