• Home
  • Raw
  • Download

Lines Matching refs:mad_hdr

231 	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()
385 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
422 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler()
706 if (mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_CM) { in mlx4_ib_demux_mad()
745 if (mad->mad_hdr.method & 0x80) { in mlx4_ib_demux_mad()
746 slave_id = (u8 *) &mad->mad_hdr.tid; in mlx4_ib_demux_mad()
769 switch (mad->mad_hdr.mgmt_class) { in mlx4_ib_demux_mad()
777 if (!(mad->mad_hdr.method & IB_MGMT_METHOD_RESP)) { in mlx4_ib_demux_mad()
779 slave, mad->mad_hdr.mgmt_class, in mlx4_ib_demux_mad()
780 mad->mad_hdr.method); in mlx4_ib_demux_mad()
795 if (mad->mad_hdr.method != IB_MGMT_METHOD_GET_RESP) in mlx4_ib_demux_mad()
802 "for slave:%d\n", mad->mad_hdr.mgmt_class, slave); in mlx4_ib_demux_mad()
831 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) { in ib_process_mad()
836 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad()
837 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in ib_process_mad()
838 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in ib_process_mad()
839 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && in ib_process_mad()
840 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) in ib_process_mad()
846 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in ib_process_mad()
848 } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || in ib_process_mad()
849 in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS1 || in ib_process_mad()
850 in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS2 || in ib_process_mad()
851 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_CONG_MGMT) { in ib_process_mad()
852 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in ib_process_mad()
853 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET) in ib_process_mad()
858 if ((in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad()
859 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in ib_process_mad()
860 in_mad->mad_hdr.method == IB_MGMT_METHOD_SET && in ib_process_mad()
861 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in ib_process_mad()
873 if (!out_mad->mad_hdr.status) { in ib_process_mad()
881 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in ib_process_mad()
882 out_mad->mad_hdr.status |= cpu_to_be16(1 << 15); in ib_process_mad()
884 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) in ib_process_mad()
944 if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_PERF_MGMT) in iboe_process_mad()
947 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) in iboe_process_mad()
971 in_mad->mad_hdr.attr_id); in iboe_process_mad()
995 (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT && in mlx4_ib_process_mad()
996 (in->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS || in mlx4_ib_process_mad()
997 in->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT || in mlx4_ib_process_mad()
998 in->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO))) in mlx4_ib_process_mad()
1344 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_multiplex_sa_handler()
1510 switch (tunnel->mad.mad_hdr.method) { in mlx4_ib_multiplex_mad()
1518 slave_id = (u8 *) &tunnel->mad.mad_hdr.tid; in mlx4_ib_multiplex_mad()
1522 tunnel->mad.mad_hdr.mgmt_class, slave); in mlx4_ib_multiplex_mad()
1531 switch (tunnel->mad.mad_hdr.mgmt_class) { in mlx4_ib_multiplex_mad()
1549 if (tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_GET && in mlx4_ib_multiplex_mad()
1550 tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_SET) in mlx4_ib_multiplex_mad()
1557 "for slave:%d\n", tunnel->mad.mad_hdr.mgmt_class, slave); in mlx4_ib_multiplex_mad()