From: James Hsiao <jhsiao@amcc.com>
To: Kim Phillips <kim.phillips@freescale.com>
Cc: linuxppc-dev@ozlabs.org, herbert@gondor.apana.org.au,
linux-crypto@vger.kernel.org
Subject: Re: [PATCH] AMCC Crypto4xx Device Driver v4]
Date: Mon, 08 Dec 2008 13:55:07 -0800 [thread overview]
Message-ID: <1228773307.4906.14.camel@jhsiao-usb> (raw)
In-Reply-To: <20081204193256.12dbc306.kim.phillips@freescale.com>
Hi Kim,
>> + /* figure how many gd is needed */
>> + if (aad_len) {
>> + num_gd = get_sg_count(assoc, aad_len) +
>> + get_sg_count(src, datalen);
> this is dead code - aad_len is never non-zero - is there some code
> missing from crypto4xx_alg.c? Also, IIRC, assoc is a superset of src,
> so I believe something like num_gd = get_sg_count(assoc, aad_len +
> datalen) would work better - this should also permit removal of the
> nbytes reached check in [1] in get_sg_count.
For the get num_gd, assoc and src are two different scatter_lists. One
for the packet and one for the aad, so, it makes more sense to me to
count them seperately. Yes?
The way to driver pass aad and aad_len is from crypto4xx_build_pd.
This aad support will be used in the future. Do you want me to remover
from the current release? The reason I have it in, is to avoid too much
code change for the future release.
Thanks
James
next prev parent reply other threads:[~2008-12-08 21:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 22:17 [PATCH] AMCC Crypto4xx Device Driver v4] James Hsiao
2008-12-05 1:32 ` Kim Phillips
2008-12-05 5:41 ` Stefan Roese
2008-12-08 18:12 ` Kim Phillips
2008-12-05 23:24 ` James Hsiao
2008-12-08 18:09 ` Kim Phillips
2008-12-08 21:55 ` James Hsiao [this message]
2008-12-09 0:35 ` Kim Phillips
2008-12-09 0:56 ` James Hsiao
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=1228773307.4906.14.camel@jhsiao-usb \
--to=jhsiao@amcc.com \
--cc=herbert@gondor.apana.org.au \
--cc=kim.phillips@freescale.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).