summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/xprt_rdma.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2017-08-14 15:38:30 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-08-15 14:01:50 -0400
commit6748b0caf82101f1f01208e48f5c4fd3ce76d562 (patch)
tree3d4a42e2a3448db7d4e82eb1237540e8c5cd0712 /net/sunrpc/xprtrdma/xprt_rdma.h
parent28d9d56f4c7759e1f12e5b1bff60210082812edc (diff)
downloadop-kernel-dev-6748b0caf82101f1f01208e48f5c4fd3ce76d562.zip
op-kernel-dev-6748b0caf82101f1f01208e48f5c4fd3ce76d562.tar.gz
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h
index 2af9106..546c264 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 *,
OpenPOWER on IntegriCloud