• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/mthca/

Lines Matching refs:mad_hdr

112 	if ((mad->mad_hdr.mgmt_class  == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
113 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
114 mad->mad_hdr.method == IB_MGMT_METHOD_SET) {
115 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) {
139 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) {
151 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
152 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
153 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP &&
154 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) {
166 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED;
218 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP &&
230 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
231 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) {
232 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET &&
233 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET &&
234 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS)
241 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO ||
242 ((in_mad->mad_hdr.attr_id & IB_SMP_ATTR_VENDOR_MASK) ==
245 } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT ||
246 in_mad->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS1 ||
247 in_mad->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS2) {
248 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET &&
249 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET)
253 if ((in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
254 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
255 in_mad->mad_hdr.method == IB_MGMT_METHOD_SET &&
256 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO &&
271 if (!out_mad->mad_hdr.status) {
277 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)
278 out_mad->mad_hdr.status |= cpu_to_be16(1 << 15);
280 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS)