IB/hfi1: Use the neighbor link down reason only when valid
authorDean Luick <dean.luick@intel.com>
Thu, 14 Apr 2016 15:31:36 +0000 (08:31 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:29 +0000 (16:32 -0400)
commitfeb831ddf2f2cfbc4d26d9df3a982790f6fbbf6a
tree4c2967f2a812b59d40f5d1f7ab0b459d6f1e5728
parentf9b5635cbe7bcacb94870e44387df133dd851b10
IB/hfi1: Use the neighbor link down reason only when valid

The 8051 uses a link down reason to inform the driver why the
link went down.  The neighbor planned link down reason code is
only valid when a link down idle message is received by the 8051.
Enhance the explanation on why the link went down.

Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c
drivers/staging/rdma/hfi1/chip.h