svcrdma: Add a @status parameter to svc_rdma_send_error_msg()
authorChuck Lever <chuck.lever@oracle.com>
Wed, 25 Mar 2020 15:57:51 +0000 (11:57 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 13 Jul 2020 21:28:24 +0000 (17:28 -0400)
commit4f200bd8affbccc3152d497b4ce5cfaca5a7c53f
tree3f7d4947f7cd6843eee352cd5071aa00a056da44
parentd1f6e2369c63f2cbc7a7441d3ee9b0eabfa9a327
svcrdma: Add a @status parameter to svc_rdma_send_error_msg()

The common "send RDMA_ERR" function should be in svc_rdma_sendto.c,
since that is where the other Send-related functions are located.
So from here, I will beef up svc_rdma_send_error_msg() and deprecate
svc_rdma_send_error().

A generic svc_rdma_send_error_msg() will need to handle both
ERR_CHUNK and ERR_VERS. Copy that logic from svc_rdma_send_error()
to svc_rdma_send_error_msg().

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