]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/srp: Move srp_rdma_ch.max_ti_iu_len declaration
authorBart Van Assche <bvanassche@acm.org>
Mon, 17 Dec 2018 21:20:37 +0000 (13:20 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 19 Dec 2018 20:07:25 +0000 (15:07 -0500)
Since srp_rdma_ch.max_ti_iu_len is used in the hot path, move it to the
section with data structure members used in the hot path.

Cc: Sergey Gorenko <sergeygo@mellanox.com>
Cc: Max Gurtovoy <maxg@mellanox.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.h

index d6c116a53d5e817cb6b651c84d79ab16cbecd355..cba29e378a7494b363320ec479c0611540bd272e 100644 (file)
@@ -132,6 +132,7 @@ struct srp_request {
 /**
  * struct srp_rdma_ch
  * @comp_vector: Completion vector used by this RDMA channel.
+ * @max_ti_iu_len: Maximum target-to-initiator information unit length.
  */
 struct srp_rdma_ch {
        /* These are RW in the hot path, and commonly used together */
@@ -148,6 +149,7 @@ struct srp_rdma_ch {
                struct ib_fmr_pool     *fmr_pool;
                struct srp_fr_pool     *fr_pool;
        };
+       uint32_t                max_ti_iu_len;
 
        /* Everything above this point is used in the hot path of
         * command processing. Try to keep them packed into cachelines.
@@ -171,7 +173,6 @@ struct srp_rdma_ch {
        struct srp_iu         **tx_ring;
        struct srp_iu         **rx_ring;
        struct srp_request     *req_ring;
-       int                     max_ti_iu_len;
        int                     comp_vector;
 
        u64                     tsk_mgmt_tag;