diff options
| author | Tadeusz Struk <tadeusz.struk@intel.com> | 2015-03-19 15:31:30 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-03-23 16:41:37 -0400 |
| commit | 66db37391dad834a4f739984eec81af27a68b09c (patch) | |
| tree | dcd1d019cb5b04bd044ca1d768f45dc9cfadb1d5 /include/crypto | |
| parent | 0345f93138b2224e0d7ce91fcffdb3dd23f364d7 (diff) | |
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')
| -rw-r--r-- | include/crypto/if_alg.h | 4 |
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 { | |||
| 58 | }; | 58 | }; |
| 59 | 59 | ||
| 60 | struct af_alg_sgl { | 60 | struct af_alg_sgl { |
| 61 | struct scatterlist sg[ALG_MAX_PAGES]; | 61 | struct scatterlist sg[ALG_MAX_PAGES + 1]; |
| 62 | struct page *pages[ALG_MAX_PAGES]; | 62 | struct page *pages[ALG_MAX_PAGES]; |
| 63 | unsigned int npages; | ||
| 63 | }; | 64 | }; |
| 64 | 65 | ||
| 65 | int af_alg_register_type(const struct af_alg_type *type); | 66 | 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); | |||
| 70 | 71 | ||
| 71 | int af_alg_make_sg(struct af_alg_sgl *sgl, struct iov_iter *iter, int len); | 72 | int af_alg_make_sg(struct af_alg_sgl *sgl, struct iov_iter *iter, int len); |
| 72 | void af_alg_free_sg(struct af_alg_sgl *sgl); | 73 | void af_alg_free_sg(struct af_alg_sgl *sgl); |
| 74 | void af_alg_link_sg(struct af_alg_sgl *sgl_prev, struct af_alg_sgl *sgl_new); | ||
| 73 | 75 | ||
| 74 | int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con); | 76 | int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con); |
| 75 | 77 | ||
