IB/srpt: Rename a local variable, a member variable and a constant
Rename rsp_size into max_rsp_size and SRPT_RQ_SIZE into MAX_SRPT_RQ_SIZE. The new names better reflect the role of this member variable and constant. Since the prefix "srp_" is superfluous in the context of the function that creates an RDMA channel, rename srp_sq_size into sq_size. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
f8781a5300
commit
ed262287e2
@@ -114,7 +114,7 @@ enum {
|
||||
|
||||
MIN_SRPT_SQ_SIZE = 16,
|
||||
DEF_SRPT_SQ_SIZE = 4096,
|
||||
SRPT_RQ_SIZE = 128,
|
||||
MAX_SRPT_RQ_SIZE = 128,
|
||||
MIN_SRPT_SRQ_SIZE = 4,
|
||||
DEFAULT_SRPT_SRQ_SIZE = 4095,
|
||||
MAX_SRPT_SRQ_SIZE = 65535,
|
||||
@@ -248,7 +248,7 @@ enum rdma_ch_state {
|
||||
* @zw_cqe: Zero-length write CQE.
|
||||
* @kref: kref for this channel.
|
||||
* @rq_size: IB receive queue size.
|
||||
* @rsp_size: IB response message size in bytes.
|
||||
* @max_rsp_size: Maximum size of an RSP response message in bytes.
|
||||
* @sq_wr_avail: number of work requests available in the send queue.
|
||||
* @sport: pointer to the information of the HCA port used by this
|
||||
* channel.
|
||||
@@ -280,7 +280,7 @@ struct srpt_rdma_ch {
|
||||
struct ib_cqe zw_cqe;
|
||||
struct kref kref;
|
||||
int rq_size;
|
||||
u32 rsp_size;
|
||||
u32 max_rsp_size;
|
||||
atomic_t sq_wr_avail;
|
||||
struct srpt_port *sport;
|
||||
u8 i_port_id[16];
|
||||
|
Reference in New Issue
Block a user