IB/mlx4: Add port and TID to MAD debug print
Add said information and make the debug print format consistent. Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
0a094ff061
commit
b4c542df5a
@@ -808,12 +808,14 @@ static int ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
|
|||||||
struct ib_port_attr pattr;
|
struct ib_port_attr pattr;
|
||||||
|
|
||||||
if (in_wc && in_wc->qp) {
|
if (in_wc && in_wc->qp) {
|
||||||
pr_debug("received MAD: slid:%d sqpn:%d "
|
pr_debug("received MAD: port:%d slid:%d sqpn:%d "
|
||||||
"dlid_bits:%d dqpn:%d wc_flags:0x%x, cls %x, mtd %x, atr %x\n",
|
"dlid_bits:%d dqpn:%d wc_flags:0x%x tid:%016llx cls:%x mtd:%x atr:%x\n",
|
||||||
|
port_num,
|
||||||
in_wc->slid, in_wc->src_qp,
|
in_wc->slid, in_wc->src_qp,
|
||||||
in_wc->dlid_path_bits,
|
in_wc->dlid_path_bits,
|
||||||
in_wc->qp->qp_num,
|
in_wc->qp->qp_num,
|
||||||
in_wc->wc_flags,
|
in_wc->wc_flags,
|
||||||
|
be64_to_cpu(in_mad->mad_hdr.tid),
|
||||||
in_mad->mad_hdr.mgmt_class, in_mad->mad_hdr.method,
|
in_mad->mad_hdr.mgmt_class, in_mad->mad_hdr.method,
|
||||||
be16_to_cpu(in_mad->mad_hdr.attr_id));
|
be16_to_cpu(in_mad->mad_hdr.attr_id));
|
||||||
if (in_wc->wc_flags & IB_WC_GRH) {
|
if (in_wc->wc_flags & IB_WC_GRH) {
|
||||||
|
Reference in New Issue
Block a user