On 08/08/18 06:36 PM, Vakul Garg wrote: > For preparing decryption request, several memory chunks are required > (aead_req, sgin, sgout, iv, aad). For submitting the decrypt request to > an accelerator, it is required that the buffers which are read by the > accelerator must be dma-able and not come from stack. The buffers for > aad and iv can be separately kmalloced each, but it is inefficient. > This patch does a combined allocation for preparing decryption request > and then segments into aead_req || sgin || sgout || iv || aad. > > Signed-off-by: Vakul Garg <vakul.g...@nxp.com> > --- > + n_sgout = sg_nents(out_sg); > + > + n_sgin = skb_nsg(skb, rxm->offset + tls_ctx->rx.prepend_size, > + rxm->full_len - tls_ctx->rx.prepend_size); > + } else { > +no_zerocopy:
label is unused now