From 08d776d1989e1de04678dc4a2e69877a24205c50 Mon Sep 17 00:00:00 2001 From: eeb Date: Thu, 22 Mar 2007 14:33:10 +0000 Subject: [PATCH] * Removed check for kernel TCP zero-copy patch - it's not used even if it's there --- lnet/autoconf/lustre-lnet.m4 | 49 +------------------------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 479a1f5..cc951b1 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -42,53 +42,6 @@ fi ]) # -# LN_CONFIG_ZEROCOPY -# -# check if zerocopy is available/wanted -# -AC_DEFUN([LN_CONFIG_ZEROCOPY], -[AC_ARG_ENABLE([zerocopy], - AC_HELP_STRING([--disable-zerocopy], - [disable socklnd zerocopy]), - [],[enable_zerocopy='yes']) -AC_MSG_CHECKING([for zero-copy TCP support]) -if test x$enable_zerocopy = xno ; then - AC_MSG_RESULT([no (by request)]) -else - ZCCD="`grep -c zccd $LINUX/include/linux/skbuff.h`" - if test "$ZCCD" = 0 ; then - AC_MSG_RESULT([no (no kernel support)]) - else - AC_MSG_RESULT([yes]) - AC_MSG_CHECKING([for up-to-date tcp zero-copy patch]) - LB_LINUX_TRY_COMPILE([ - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - ],[ - struct zccd zc = {0}; - - return atomic_read(&zc.zccd_refcount); - ],[ - AC_MSG_RESULT([yes]) - AC_DEFINE(SOCKNAL_ZC, 1, [enable zero-copy support]) - ],[ - AC_MSG_RESULT([no]) - AC_MSG_ERROR([old TCP zero-copy in kernel (bug 10889) - use --disable-zerocopy to continue ]) - ]) - fi -fi -]) - -# # LN_CONFIG_AFFINITY # # check if cpu affinity is available/wanted @@ -1096,7 +1049,7 @@ LB_LINUX_TRY_COMPILE([ # LNet linux kernel checks # AC_DEFUN([LN_PROG_LINUX], -[LN_CONFIG_ZEROCOPY +[ LN_FUNC_CPU_ONLINE LN_TYPE_GFP_T LN_TYPE_CPUMASK_T -- 1.8.3.1