xprtrdma: Initialize rb_credits in one place
authorChuck Lever <chuck.lever@oracle.com>
Wed, 9 Oct 2019 17:07:32 +0000 (13:07 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 24 Oct 2019 14:30:39 +0000 (10:30 -0400)
commiteea63ca7ffa1f3a4a0b02b902ec51eab2d4e9df4
tree3822ce7ccdd478b4a85bcf38b0c79d138112ca69
parenta31b2f939219dd9bffdf01a45bd91f209f8cc369
xprtrdma: Initialize rb_credits in one place

Clean up/code de-duplication.

Nit: RPC_CWNDSHIFT is incorrect as the initial value for xprt->cwnd.
This mistake does not appear to have operational consequences, since
the cwnd value is replaced with a valid value upon the first Receive
completion.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h