From: David Sterba <dsterba@suse.cz>
To: Nikolay Borisov <nborisov@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>,
David Sterba <dsterba@suse.com>,
Linux BTRFS Mailinglist <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH v2 09/11] btrfs-progs: add xxhash sources
Date: Tue, 27 Aug 2019 18:20:58 +0200 [thread overview]
Message-ID: <20190827162058.GT2752@twin.jikos.cz> (raw)
In-Reply-To: <31238c84-9a3d-08cf-ee7e-5c8647bbf661@suse.com>
On Tue, Aug 27, 2019 at 04:05:57PM +0300, Nikolay Borisov wrote:
>
>
> On 26.08.19 г. 14:48 ч., Johannes Thumshirn wrote:
> > From: David Sterba <dsterba@suse.com>
> >
> > git://github.com/Cyan4973/xxHash
> >
> > Signed-off-by: David Sterba <dsterba@suse.com>
> > Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>> ---
> > crypto/xxhash.c | 1024 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > crypto/xxhash.h | 445 ++++++++++++++++++++++++
> > 2 files changed, 1469 insertions(+)
>
>
> Existing crc32c implementation is under kernel-lib/, whereas the xxhash
> will be under crypto. I think we should have some consistency among the
> various hashes we might be implementing in the future. I don't have
> strong preferences either way. I guess crypto/ makes more sense.
The kernel-lib contains 99%-copies of the kernel files and they're
mostly unrelated. The crc32 files could be moved to crypto/ as we'll
have more than that and xxhash there.
The idea with the local versions of hashes is to provide a fallback
implementations of everything we need but the preferred option will be
linking to some existing crypto library like openssl. So we'll need some
glue code etc. This isn't entirely suitable for kerne-lib.
next prev parent reply other threads:[~2019-08-27 16:20 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-26 11:48 [PATCH v2 00/11] btrfs-progs: support xxhash64 checksums Johannes Thumshirn
2019-08-26 11:48 ` [PATCH v2 01/11] btrfs-progs: don't blindly assume crc32c in csum_tree_block_size() Johannes Thumshirn
2019-08-27 16:33 ` David Sterba
2019-08-27 16:36 ` David Sterba
2019-08-28 7:48 ` Johannes Thumshirn
2019-08-26 11:48 ` [PATCH v2 02/11] btrfs-progs: cache csum_type in recover_control Johannes Thumshirn
2019-08-26 11:48 ` [PATCH v2 03/11] btrfs-progs: add checksum type to checksumming functions Johannes Thumshirn
2019-08-27 12:51 ` Nikolay Borisov
2019-08-26 11:48 ` [PATCH v2 04/11] btrfs-progs: don't assume checksums are always 4 bytes Johannes Thumshirn
2019-08-27 12:52 ` Nikolay Borisov
2019-08-26 11:48 ` [PATCH v2 05/11] btrfs-progs: pass checksum type to btrfs_csum_data()/btrfs_csum_final() Johannes Thumshirn
2019-08-27 12:53 ` Nikolay Borisov
2019-08-26 11:48 ` [PATCH v2 06/11] btrfs-progs: simplify update_block_csum() in btrfs-sb-mod.c Johannes Thumshirn
2019-08-26 11:48 ` [PATCH v2 07/11] btrfs-progs: update checksumming api Johannes Thumshirn
2019-08-26 11:48 ` [PATCH v2 08/11] btrfs-progs: add option for checksum type to mkfs Johannes Thumshirn
2019-08-27 13:03 ` Nikolay Borisov
2019-08-26 11:48 ` [PATCH v2 09/11] btrfs-progs: add xxhash sources Johannes Thumshirn
2019-08-27 13:05 ` Nikolay Borisov
2019-08-27 16:20 ` David Sterba [this message]
2019-08-26 11:48 ` [PATCH v2 10/11] btrfs-progs: add xxhash64 as checksum algorithm Johannes Thumshirn
2019-08-27 14:16 ` Nikolay Borisov
2019-08-27 16:12 ` David Sterba
2019-08-30 9:33 ` Johannes Thumshirn
2019-08-26 11:48 ` [PATCH v2 11/11] btrfs-progs: add test-case for mkfs with xxhash64 Johannes Thumshirn
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=20190827162058.GT2752@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=dsterba@suse.com \
--cc=jthumshirn@suse.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=nborisov@suse.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