Whamcloud - gitweb
LU-13127 ptlrpc: don't require CONFIG_CRYPTO_CRC32 01/39201/5
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 27 Jun 2020 11:32:37 +0000 (05:32 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 13 Aug 2020 05:58:26 +0000 (05:58 +0000)
commit726897c87c42c1a74cae46795acda1a88ef43605
tree28e31c20ddb4989853f6c56ec200c529c647bc00
parentc54b6ca2bdb5fb350117138106ffe37cdb9b7046
LU-13127 ptlrpc: don't require CONFIG_CRYPTO_CRC32

Don't require CONFIG_CRYPTO_CRC32 to build if not configured,
as it may not be available for all kernels and is easily fixed.

Consolidate the early reply code in sec_plain.c to also call
lustre_msg_calc_cksum() to reduce code duplication.

Fixes: e1a0f602a608 ("LU-13127 libcfs: make noise to console if CRC32 is missing")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I00511df418ddfbd8522936cf2bc0f3193d2540e5
Reviewed-on: https://review.whamcloud.com/39201
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
lustre/include/lustre_net.h
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/sec_null.c
lustre/ptlrpc/sec_plain.c