diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2017-08-14 21:38:30 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-08-15 20:01:50 +0200 |
commit | 6748b0caf82101f1f01208e48f5c4fd3ce76d562 (patch) | |
tree | 3d4a42e2a3448db7d4e82eb1237540e8c5cd0712 /net/sunrpc/xprtrdma/xprt_rdma.h | |
parent | xprtrdma: Remove imul instructions from rpcrdma_convert_iovs() (diff) | |
download | linux-6748b0caf82101f1f01208e48f5c4fd3ce76d562.tar.xz linux-6748b0caf82101f1f01208e48f5c4fd3ce76d562.zip |
xprtrdma: Remove imul instructions from chunk list encoders
Re-arrange the pointer arithmetic in the chunk list encoders to
eliminate several more integer multiplication instructions during
Transport Header encoding.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/xprt_rdma.h')
-rw-r--r-- | net/sunrpc/xprtrdma/xprt_rdma.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index 2af910662928..546c26405596 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h @@ -466,7 +466,8 @@ struct rpcrdma_stats { */ struct rpcrdma_xprt; struct rpcrdma_memreg_ops { - int (*ro_map)(struct rpcrdma_xprt *, + struct rpcrdma_mr_seg * + (*ro_map)(struct rpcrdma_xprt *, struct rpcrdma_mr_seg *, int, bool, struct rpcrdma_mw **); void (*ro_unmap_sync)(struct rpcrdma_xprt *, |