From: Dave Watson <davejwatson@fb.com>
To: Vakul Garg <vakul.garg@nxp.com>
Cc: <netdev@vger.kernel.org>, <borisp@mellanox.com>,
<aviadye@mellanox.com>, <davem@davemloft.net>
Subject: Re: [PATCH net-next v1 1/1] net/tls: Combined memory allocation for decryption request
Date: Wed, 8 Aug 2018 10:07:16 -0700 [thread overview]
Message-ID: <20180808170716.GB82808@davejwatson-mba.local> (raw)
In-Reply-To: <20180808130630.13568-2-vakul.garg@nxp.com>
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.garg@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
next prev parent reply other threads:[~2018-08-08 19:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-08 13:06 [PATCH net-next v1 0/1] net/tls: Combined memory allocation for decryption request Vakul Garg
2018-08-08 13:06 ` [PATCH net-next v1 1/1] " Vakul Garg
2018-08-08 17:07 ` Dave Watson [this message]
2018-08-08 18:08 ` Vakul Garg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180808170716.GB82808@davejwatson-mba.local \
--to=davejwatson@fb.com \
--cc=aviadye@mellanox.com \
--cc=borisp@mellanox.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=vakul.garg@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox