Whamcloud - gitweb
LU-11224 obd: use correct ip_compute_csum() version 53/32953/2
authorJames Simmons <uja.ornl@yahoo.com>
Tue, 7 Aug 2018 17:20:54 +0000 (13:20 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Aug 2018 02:22:26 +0000 (02:22 +0000)
commit82fe90a1d07d08fdd4dd2fc3a9bc0d83926dad37
treec74011e5f1676ac84f02ceb0d5e02ce36e48542f
parent8f37d64b6bc9111ff20ffb0bd22daf8fb9c8c159
LU-11224 obd: use correct ip_compute_csum() version

The linux kernel provides a generic platform independent version
of ip_compute_csum() as well as platform optimized versions. Some
platforms will disable the generic platform version in favor of
the optimized one. If the generic version is disabled and if the
checksum.h header from asm-generic is used then we will end up
with a undefined symbol error when loading the obdclass module.
The solution is to use the platform specific checksum.h header
that will handle using the generic or optimized version for us.
As a bounus we get better performance with the right kernel
configuration.

Test-Parameters: trivial

Change-Id: Ia0cfc9f4363bb61d5e381790655423ff5f91d9be
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/32953
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/obdclass/integrity.c