aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-07-09 16:45:37 -0400
committerJ. Bruce Fields <bfields@redhat.com>2015-07-20 14:58:47 -0400
commit31193fe5f6fb616711323f5d74ee5bb92aacba4a (patch)
tree0782a70927b9c8a0a6a68da3d0733ef03c766e4f /net
parent10dc4512185741a298cd7bc87e9968944f31a50d (diff)
svcrdma: Remove svc_rdma_fastreg()
Commit 0bf4828983df ("svcrdma: refactor marshalling logic") removed the last call site for svc_rdma_fastreg(). Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma_transport.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
index f4b973233977..4054a9de6a91 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
@@ -1202,40 +1202,6 @@ static int svc_rdma_secure_port(struct svc_rqst *rqstp)
1202 return 1; 1202 return 1;
1203} 1203}
1204 1204
1205/*
1206 * Attempt to register the kvec representing the RPC memory with the
1207 * device.
1208 *
1209 * Returns:
1210 * NULL : The device does not support fastreg or there were no more
1211 * fastreg mr.
1212 * frmr : The kvec register request was successfully posted.
1213 * <0 : An error was encountered attempting to register the kvec.
1214 */
1215int svc_rdma_fastreg(struct svcxprt_rdma *xprt,
1216 struct svc_rdma_fastreg_mr *frmr)
1217{
1218 struct ib_send_wr fastreg_wr;
1219 u8 key;
1220
1221 /* Bump the key */
1222 key = (u8)(frmr->mr->lkey & 0x000000FF);
1223 ib_update_fast_reg_key(frmr->mr, ++key);
1224
1225 /* Prepare FASTREG WR */
1226 memset(&fastreg_wr, 0, sizeof fastreg_wr);
1227 fastreg_wr.opcode = IB_WR_FAST_REG_MR;
1228 fastreg_wr.send_flags = IB_SEND_SIGNALED;
1229 fastreg_wr.wr.fast_reg.iova_start = (unsigned long)frmr->kva;
1230 fastreg_wr.wr.fast_reg.page_list = frmr->page_list;
1231 fastreg_wr.wr.fast_reg.page_list_len = frmr->page_list_len;
1232 fastreg_wr.wr.fast_reg.page_shift = PAGE_SHIFT;
1233 fastreg_wr.wr.fast_reg.length = frmr->map_len;
1234 fastreg_wr.wr.fast_reg.access_flags = frmr->access_flags;
1235 fastreg_wr.wr.fast_reg.rkey = frmr->mr->lkey;
1236 return svc_rdma_send(xprt, &fastreg_wr);
1237}
1238
1239int svc_rdma_send(struct svcxprt_rdma *xprt, struct ib_send_wr *wr) 1205int svc_rdma_send(struct svcxprt_rdma *xprt, struct ib_send_wr *wr)
1240{ 1206{
1241 struct ib_send_wr *bad_wr, *n_wr; 1207 struct ib_send_wr *bad_wr, *n_wr;