]> git.proxmox.com Git - mirror_zfs.git/commit
FreeBSD: Implement sysctl for fletcher4 impl
authorRyan Moeller <ryan@iXsystems.com>
Wed, 2 Dec 2020 21:45:08 +0000 (21:45 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 11 Dec 2020 18:29:01 +0000 (10:29 -0800)
commit439dc034e94c99e413430277c81b3c45e0060e51
treee8d9b2da15bd40e69d71d07a6821e944a1eae0c8
parentba67d82142bc7034734a49a62998cfc96b1d0038
FreeBSD: Implement sysctl for fletcher4 impl

There is a tunable to select the fletcher 4 checksum implementation on
Linux but it was not present in FreeBSD.

Implement the sysctl handler for FreeBSD and use ZFS_MODULE_PARAM_CALL
to provide the tunable on both platforms.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11270
include/os/freebsd/spl/sys/mod_os.h
include/os/linux/kernel/linux/mod_compat.h
module/zcommon/zfs_fletcher.c