IB/hfi1: Correctly report neighbor link down reason
authorDean Luick <dean.luick@intel.com>
Thu, 14 Apr 2016 15:31:42 +0000 (08:31 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:29 +0000 (16:32 -0400)
commit015e91fbc9c6ab48596aa38fc0f8c8aab44036f9
tree0ca12894fed2dd2f8ff54ae70b04b5cb6de6c3ea
parentfeb831ddf2f2cfbc4d26d9df3a982790f6fbbf6a
IB/hfi1: Correctly report neighbor link down reason

The code to save the link down reason for reporting to the SMA
was in a location before the actual reason was read.  Move the
SMA link down reason assignment to a better location.

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