From 82fe90a1d07d08fdd4dd2fc3a9bc0d83926dad37 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Tue, 7 Aug 2018 13:20:54 -0400 Subject: [PATCH] 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 Reviewed-on: https://review.whamcloud.com/32953 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Li Xi Reviewed-by: Li Dongyang Reviewed-by: Andreas Dilger --- lustre/obdclass/integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/integrity.c b/lustre/obdclass/integrity.c index da56b20..a48e5e9 100644 --- a/lustre/obdclass/integrity.c +++ b/lustre/obdclass/integrity.c @@ -27,7 +27,7 @@ */ #include #include -#include +#include #include #include -- 1.8.3.1