xprtrdma: Refactor rpcrdma_reply_handler()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 3 Aug 2017 18:30:19 +0000 (14:30 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 8 Aug 2017 14:52:00 +0000 (10:52 -0400)
commit07ff2dd510d8c5b1166827df7686036283be10e0
tree22c03a7b589852eeab6572ee00a45ab32dd543aa
parent41c8f70f5a3db7e06179186b6525fd9ee1d7d314
xprtrdma: Refactor rpcrdma_reply_handler()

Refactor the reply handler's transport header decoding logic to make
it easier to understand and update.

Convert some of the handler to use xdr_streams, which will enable
stricter validation of input data and enable the eventual addition
of support for new combinations of chunks, such as "Write + Reply"
or "PZRC + normal Read".

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