• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/mlx4/

Lines Matching refs:mad_hdr

156 	if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
157 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
158 mad->mad_hdr.method == IB_MGMT_METHOD_SET) {
159 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) {
182 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) {
194 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
195 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
196 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP &&
197 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) {
206 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED;
243 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) {
248 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
249 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) {
250 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET &&
251 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET &&
252 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS)
259 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO ||
260 ((in_mad->mad_hdr.attr_id & IB_SMP_ATTR_VENDOR_MASK) ==
263 } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT ||
264 in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS1 ||
265 in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS2 ||
266 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_CONG_MGMT) {
267 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET &&
268 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET)
273 if ((in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
274 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
275 in_mad->mad_hdr.method == IB_MGMT_METHOD_SET &&
276 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO &&
287 if (!out_mad->mad_hdr.status) {
293 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)
294 out_mad->mad_hdr.status |= cpu_to_be16(1 << 15);
296 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS)