[PATCH] RPC: skip over transport-specific heads automatically
Add a generic mechanism for skipping over transport-specific headers when constructing an RPC request. This removes another "xprt->stream" dependency. Test-plan: Write-intensive workload on a single mount point (try both UDP and TCP). Signed-off-by: Chuck Lever <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
committed by
Trond Myklebust
parent
262965f53d
commit
808012fbb2
@@ -844,10 +844,8 @@ gss_marshal(struct rpc_task *task, u32 *p)
|
||||
|
||||
/* We compute the checksum for the verifier over the xdr-encoded bytes
|
||||
* starting with the xid and ending at the end of the credential: */
|
||||
iov.iov_base = req->rq_snd_buf.head[0].iov_base;
|
||||
if (task->tk_client->cl_xprt->stream)
|
||||
/* See clnt.c:call_header() */
|
||||
iov.iov_base += 4;
|
||||
iov.iov_base = xprt_skip_transport_header(task->tk_xprt,
|
||||
req->rq_snd_buf.head[0].iov_base);
|
||||
iov.iov_len = (u8 *)p - (u8 *)iov.iov_base;
|
||||
xdr_buf_from_iov(&iov, &verf_buf);
|
||||
|
||||
|
Reference in New Issue
Block a user