summaryrefslogtreecommitdiffstats
path: root/include/crypto/if_alg.h
diff options
context:
space:
mode:
authorTadeusz Struk2015-03-19 20:31:30 +0100
committerDavid S. Miller2015-03-23 21:41:37 +0100
commit66db37391dad834a4f739984eec81af27a68b09c (patch)
treedcd1d019cb5b04bd044ca1d768f45dc9cfadb1d5 /include/crypto/if_alg.h
parentnet: socket: add support for async operations (diff)
downloadkernel-qcow2-linux-66db37391dad834a4f739984eec81af27a68b09c.tar.gz
kernel-qcow2-linux-66db37391dad834a4f739984eec81af27a68b09c.tar.xz
kernel-qcow2-linux-66db37391dad834a4f739984eec81af27a68b09c.zip
crypto: af_alg - Allow to link sgl
Allow to link af_alg sgls. Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/crypto/if_alg.h')
-rw-r--r--include/crypto/if_alg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/crypto/if_alg.h b/include/crypto/if_alg.h
index 178525e5f430..018afb264ac2 100644
--- a/include/crypto/if_alg.h
+++ b/include/crypto/if_alg.h
@@ -58,8 +58,9 @@ struct af_alg_type {
};
struct af_alg_sgl {
- struct scatterlist sg[ALG_MAX_PAGES];
+ struct scatterlist sg[ALG_MAX_PAGES + 1];
struct page *pages[ALG_MAX_PAGES];
+ unsigned int npages;
};
int af_alg_register_type(const struct af_alg_type *type);
@@ -70,6 +71,7 @@ int af_alg_accept(struct sock *sk, struct socket *newsock);
int af_alg_make_sg(struct af_alg_sgl *sgl, struct iov_iter *iter, int len);
void af_alg_free_sg(struct af_alg_sgl *sgl);
+void af_alg_link_sg(struct af_alg_sgl *sgl_prev, struct af_alg_sgl *sgl_new);
int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con);