diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2017-10-30 16:21:57 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-11-17 16:43:42 -0500 |
commit | 2232df5ece121fd7049ccff95cbb3acfab278d75 (patch) | |
tree | 4fbcb81bf103d6b40710f51c5dc9c1eba18f511d /net/sunrpc | |
parent | a4699f5647f369e8ab7ec56b7cd98580c933c3f3 (diff) |
rpcrdma: Remove C structure definitions of XDR data items
Clean up: C-structure style XDR encoding and decoding logic has
been replaced over the past several merge windows on both the
client and server. These data structures are no longer used.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/xprtrdma/rpc_rdma.c | 6 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/xprt_rdma.h | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c index 4fdeaac6ebe6..45cb5497b37f 100644 --- a/net/sunrpc/xprtrdma/rpc_rdma.c +++ b/net/sunrpc/xprtrdma/rpc_rdma.c | |||
@@ -75,11 +75,11 @@ static unsigned int rpcrdma_max_call_header_size(unsigned int maxsegs) | |||
75 | 75 | ||
76 | /* Maximum Read list size */ | 76 | /* Maximum Read list size */ |
77 | maxsegs += 2; /* segment for head and tail buffers */ | 77 | maxsegs += 2; /* segment for head and tail buffers */ |
78 | size = maxsegs * sizeof(struct rpcrdma_read_chunk); | 78 | size = maxsegs * rpcrdma_readchunk_maxsz * sizeof(__be32); |
79 | 79 | ||
80 | /* Minimal Read chunk size */ | 80 | /* Minimal Read chunk size */ |
81 | size += sizeof(__be32); /* segment count */ | 81 | size += sizeof(__be32); /* segment count */ |
82 | size += sizeof(struct rpcrdma_segment); | 82 | size += rpcrdma_segment_maxsz * sizeof(__be32); |
83 | size += sizeof(__be32); /* list discriminator */ | 83 | size += sizeof(__be32); /* list discriminator */ |
84 | 84 | ||
85 | dprintk("RPC: %s: max call header size = %u\n", | 85 | dprintk("RPC: %s: max call header size = %u\n", |
@@ -102,7 +102,7 @@ static unsigned int rpcrdma_max_reply_header_size(unsigned int maxsegs) | |||
102 | /* Maximum Write list size */ | 102 | /* Maximum Write list size */ |
103 | maxsegs += 2; /* segment for head and tail buffers */ | 103 | maxsegs += 2; /* segment for head and tail buffers */ |
104 | size = sizeof(__be32); /* segment count */ | 104 | size = sizeof(__be32); /* segment count */ |
105 | size += maxsegs * sizeof(struct rpcrdma_segment); | 105 | size += maxsegs * rpcrdma_segment_maxsz * sizeof(__be32); |
106 | size += sizeof(__be32); /* list discriminator */ | 106 | size += sizeof(__be32); /* list discriminator */ |
107 | 107 | ||
108 | dprintk("RPC: %s: max reply header size = %u\n", | 108 | dprintk("RPC: %s: max reply header size = %u\n", |
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index 6e64c8259d34..8b9954c41ee4 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h | |||
@@ -145,12 +145,6 @@ rdmab_lkey(struct rpcrdma_regbuf *rb) | |||
145 | return rb->rg_iov.lkey; | 145 | return rb->rg_iov.lkey; |
146 | } | 146 | } |
147 | 147 | ||
148 | static inline struct rpcrdma_msg * | ||
149 | rdmab_to_msg(struct rpcrdma_regbuf *rb) | ||
150 | { | ||
151 | return (struct rpcrdma_msg *)rb->rg_base; | ||
152 | } | ||
153 | |||
154 | static inline struct ib_device * | 148 | static inline struct ib_device * |
155 | rdmab_device(struct rpcrdma_regbuf *rb) | 149 | rdmab_device(struct rpcrdma_regbuf *rb) |
156 | { | 150 | { |