IB/hfi1: fix pstateinfo from returning improperly byteswapped value
authorIra Weiny <ira.weiny@intel.com>
Wed, 9 Sep 2015 05:28:21 +0000 (01:28 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Sep 2015 15:28:47 +0000 (11:28 -0400)
commitaadfc3b2042d69a6b4b8d719d4221b988d7f31a5
treed6e486927ddf5782be5093635fcde49f164eec13
parent447e9a4d27484175a84daaa8e03d35c650f443b7
IB/hfi1: fix pstateinfo from returning improperly byteswapped value

Byteswap link_width_downgrade_*_active values before sending on the wire.  In
addition properly define the Port State Info structure.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Christian Gomez <christian.gomez@intel.com>
Signed-off-by: Rimmer, Todd <todd.rimmer@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/mad.c
include/rdma/opa_port_info.h