summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2016-05-24 12:50:34 -0700
committerDoug Ledford <dledford@redhat.com>2016-05-26 12:21:10 -0400
commit4c0b653335bbdfe62a5f4483c98cb5d581432917 (patch)
tree4060e599791b136cf2eb4bf948711c09c2789821 /include
parent7049de65c9e520886f06d6f9deceaaed5d93fb7c (diff)
downloadlinux-4c0b653335bbdfe62a5f4483c98cb5d581432917.tar.bz2
IB/rdmavt: Max atomic value should be a u8
This matches the ib_qp_attr size and avoids a extremely large value when the lower level driver registers. As part of the patch, the u8 ordinals are moved to the end of the struct to reduce pahole noted excesses. Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/rdma_vt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/rdma_vt.h b/include/rdma/rdma_vt.h
index d57ceee90d26..3f12da9384a1 100644
--- a/include/rdma/rdma_vt.h
+++ b/include/rdma/rdma_vt.h
@@ -149,15 +149,15 @@ struct rvt_driver_params {
int qpn_res_end;
int nports;
int npkeys;
- u8 qos_shift;
char cq_name[RVT_CQN_MAX];
int node;
- int max_rdma_atomic;
int psn_mask;
int psn_shift;
int psn_modify_mask;
u32 core_cap_flags;
u32 max_mad_size;
+ u8 qos_shift;
+ u8 max_rdma_atomic;
};
/* Protection domain */