From: Marek Vasut <marex@denx.de>
To: Amos Kong <akong@redhat.com>
Cc: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au,
davem@davemloft.net
Subject: Re: [PATCH] crypto/xor.c: use 2 pages for xor speed testing
Date: Wed, 25 Jun 2014 21:59:18 +0200 [thread overview]
Message-ID: <201406252159.18622.marex@denx.de> (raw)
In-Reply-To: <20140617071603.GC8709@z.redhat.com>
On Tuesday, June 17, 2014 at 09:16:03 AM, Amos Kong wrote:
[...]
> > While looking at this code, can anyone explain to me why we have this
> > stuff in crypto/xor.c please ?
> >
> > 135 #define xor_speed(templ) do_xor_speed((templ), b1, b2)
> > 136
> > 137 if (fastest) {
> > 138 printk(KERN_INFO "xor: automatically using best "
> > 139 "checksumming function:\n");
> > 140 xor_speed(fastest);
> > 141 goto out;
> > 142 } else {
> > [...]
> > 149 }
> > 150
> > 151 printk(KERN_INFO "xor: using function: %s (%d.%03d
> > MB/sec)\n", 152 fastest->name, fastest->speed / 1000,
> > fastest->speed % 1000); 153
> > 154 #undef xor_speed
> >
> > Why do we not call do_xor_speed(fastest, b1, b2); right away , but we
> > #define xor_speed() instead ? This looks like some remnant or nonsense
> > to me. Shall I remove that with a patch ?
>
> You are right.
I'm wrong. The XOR_TRY_TEMPLATES needs this #define xor_speed , so there's no
patch happening here. Sorry.
Best regards,
Marek Vasut
prev parent reply other threads:[~2014-06-25 19:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 1:11 [PATCH] crypto/xor.c: use 2 pages for xor speed testing Amos Kong
2014-06-05 21:57 ` Marek Vasut
2014-06-17 7:16 ` Amos Kong
2014-06-25 19:59 ` Marek Vasut [this message]
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=201406252159.18622.marex@denx.de \
--to=marex@denx.de \
--cc=akong@redhat.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.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).