Commit a03a03e9 authored by Ignacio Hernandez's avatar Ignacio Hernandez Committed by Greg Kroah-Hartman

staging/rdma/hfi1: Remove spurious error messages

Changed the order in which diagnostics messages are printed,
taking into account the cases where the errors are handled in
rcv_hdrerr() and no further message is needed to report.
Reviewed-by: default avatarMark Debbage <mark.debbage@intel.com>
Reviewed-by: default avatarArthur Kepner <arthur.kepner@intel.com>
Reviewed-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: default avatarIgnacio Hernandez <ignacio.hernandez@intel.com>
Signed-off-by: default avatarJubin John <jubin.john@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 801cfd6d
...@@ -1156,6 +1156,8 @@ void handle_eflags(struct hfi1_packet *packet) ...@@ -1156,6 +1156,8 @@ void handle_eflags(struct hfi1_packet *packet)
struct hfi1_ctxtdata *rcd = packet->rcd; struct hfi1_ctxtdata *rcd = packet->rcd;
u32 rte = rhf_rcv_type_err(packet->rhf); u32 rte = rhf_rcv_type_err(packet->rhf);
rcv_hdrerr(rcd, rcd->ppd, packet);
if (rhf_err_flags(packet->rhf))
dd_dev_err(rcd->dd, dd_dev_err(rcd->dd,
"receive context %d: rhf 0x%016llx, errs [ %s%s%s%s%s%s%s%s] rte 0x%x\n", "receive context %d: rhf 0x%016llx, errs [ %s%s%s%s%s%s%s%s] rte 0x%x\n",
rcd->ctxt, packet->rhf, rcd->ctxt, packet->rhf,
...@@ -1168,8 +1170,6 @@ void handle_eflags(struct hfi1_packet *packet) ...@@ -1168,8 +1170,6 @@ void handle_eflags(struct hfi1_packet *packet)
packet->rhf & RHF_VCRC_ERR ? "vcrc " : "", packet->rhf & RHF_VCRC_ERR ? "vcrc " : "",
packet->rhf & RHF_ICRC_ERR ? "icrc " : "", packet->rhf & RHF_ICRC_ERR ? "icrc " : "",
rte); rte);
rcv_hdrerr(rcd, rcd->ppd, packet);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment