summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2015-09-09 07:28:21 +0200
committerDoug Ledford <dledford@redhat.com>2015-09-18 17:28:47 +0200
commitaadfc3b2042d69a6b4b8d719d4221b988d7f31a5 (patch)
treed6e486927ddf5782be5093635fcde49f164eec13 /include
parentIB/ehca: Deprecate driver, move to staging, schedule deletion (diff)
downloadlinux-aadfc3b2042d69a6b4b8d719d4221b988d7f31a5.tar.xz
linux-aadfc3b2042d69a6b4b8d719d4221b988d7f31a5.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/opa_port_info.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/opa_port_info.h b/include/rdma/opa_port_info.h
index 391dae1931c0..a0fa975cd1c1 100644
--- a/include/rdma/opa_port_info.h
+++ b/include/rdma/opa_port_info.h
@@ -294,8 +294,8 @@ struct opa_port_states {
struct opa_port_state_info {
struct opa_port_states port_states;
- u16 link_width_downgrade_tx_active;
- u16 link_width_downgrade_rx_active;
+ __be16 link_width_downgrade_tx_active;
+ __be16 link_width_downgrade_rx_active;
};
struct opa_port_info {