summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2016-02-14 21:44:26 +0100
committerDoug Ledford <dledford@redhat.com>2016-03-11 02:38:11 +0100
commitd2421a82f6d8ad407d3f4acdbacedfb06d9f47f5 (patch)
tree16d2dadb09aa034dbb200ff5a2d4a2e768696c3d /include
parentstaging/rdma/hfi1: add s_avail to qp_stats (diff)
downloadlinux-d2421a82f6d8ad407d3f4acdbacedfb06d9f47f5.tar.xz
linux-d2421a82f6d8ad407d3f4acdbacedfb06d9f47f5.zip
IB/rdmvt: close send engine struct holes
pahole noted the wasted 4 bytes after s_lock and r_lock. Move s_flags and r_psn to fill the holes. 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/rdmavt_qp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/rdmavt_qp.h b/include/rdma/rdmavt_qp.h
index 933f14f92da6..5c307ed4d195 100644
--- a/include/rdma/rdmavt_qp.h
+++ b/include/rdma/rdmavt_qp.h
@@ -283,12 +283,12 @@ struct rvt_qp {
struct rvt_sge_state s_rdma_read_sge;
spinlock_t r_lock ____cacheline_aligned_in_smp; /* used for APM */
+ u32 r_psn; /* expected rcv packet sequence number */
unsigned long r_aflags;
u64 r_wr_id; /* ID for current receive WQE */
u32 r_ack_psn; /* PSN for next ACK or atomic ACK */
u32 r_len; /* total length of r_sge */
u32 r_rcv_len; /* receive data len processed */
- u32 r_psn; /* expected rcv packet sequence number */
u32 r_msn; /* message sequence number */
u8 r_state; /* opcode of last packet received */
@@ -308,8 +308,8 @@ struct rvt_qp {
u32 s_ssn; /* SSN of tail entry */
spinlock_t s_lock ____cacheline_aligned_in_smp;
- struct rvt_sge_state *s_cur_sge;
u32 s_flags;
+ struct rvt_sge_state *s_cur_sge;
struct rvt_swqe *s_wqe;
struct rvt_sge_state s_sge; /* current send request data */
struct rvt_mregion *s_rdma_mr;