]) # LIBCFS_SYSCTL_CTLNAME
#
-# LC_SK_SLEEP
-#
-# 2.6.35 kernel has sk_sleep function
-#
-AC_DEFUN([LC_SK_SLEEP], [
-LB_CHECK_COMPILE([if Linux kernel has 'sk_sleep'],
-sk_sleep, [
- #include <net/sock.h>
-],[
- sk_sleep(NULL);
-],[
- AC_DEFINE(HAVE_SK_SLEEP, 1,
- [kernel has sk_sleep])
-])
-]) # LC_SK_SLEEP
-
-#
# LIBCFS_KSTRTOUL
#
# 2.6.38 kstrtoul is added
LC_SHRINKER_WANT_SHRINK_PTR
# 2.6.33
LIBCFS_SYSCTL_CTLNAME
-# 2.6.35
-LC_SK_SLEEP
# 2.6.38
LIBCFS_KSTRTOUL
# 2.6.39
]) # LN_CONFIG_GNILND
#
+# LN_CONFIG_SK_SLEEP
+#
+# 2.6.35 kernel has sk_sleep function
+#
+AC_DEFUN([LN_CONFIG_SK_SLEEP], [
+LB_CHECK_COMPILE([if Linux kernel has 'sk_sleep'],
+sk_sleep, [
+ #ifdef HAVE_COMPAT_RDMA
+ #include <linux/compat-2.6.h>
+ #endif
+ #include <net/sock.h>
+],[
+ sk_sleep(NULL);
+],[
+ AC_DEFINE(HAVE_SK_SLEEP, 1,
+ [kernel has sk_sleep])
+])
+]) # LN_CONFIG_SK_SLEEP
+
+#
# LN_CONFIG_TCP_SENDPAGE
#
# 2.6.36 tcp_sendpage() first parameter is 'struct sock' instead of 'struct socket'.
#
# LN_CONFIG_SK_DATA_READY
#
-# 2.6.36 tcp_sendpage() first parameter is 'struct sock' instead of 'struct socket'.
+# 3.15 for struct sock the *sk_data_ready() field only takes one argument now
#
AC_DEFUN([LN_CONFIG_SK_DATA_READY], [
tmp_flags="$EXTRA_KCFLAGS"
LN_CONFIG_BACKOFF
LN_CONFIG_O2IB
LN_CONFIG_GNILND
+# 2.6.35
+LN_CONFIG_SK_SLEEP
# 2.6.36
LN_CONFIG_TCP_SENDPAGE
# 3.15
int lnet_acceptor_start(void);
void lnet_acceptor_stop(void);
-#ifndef HAVE_SK_SLEEP
-static inline wait_queue_head_t *sk_sleep(struct sock *sk)
-{
- return sk->sk_sleep;
-}
-#endif
-
int lnet_ipif_query(char *name, int *up, __u32 *ip, __u32 *mask);
int lnet_ipif_enumerate(char ***names);
void lnet_ipif_free_enumeration(char **names, int n);
#include <linux/kthread.h>
#include <linux/uio.h>
#include <linux/types.h>
-#include <net/sock.h>
#include <lnet/lnetctl.h>
kgnilnd-objs := gnilnd.o gnilnd_cb.o gnilnd_modparams.o gnilnd_debug.o gnilnd_proc.o \
gnilnd_sysctl.o gnilnd_stack.o gnilnd_conn.o
+# Need to make sure that an external OFED source pool overrides
+# any in-kernel OFED sources
+NOSTDINC_FLAGS += @EXTRA_OFED_INCLUDE@
+
EXTRA_POST_CFLAGS := -D"SVN_CODE_REV=KBUILD_STR(${SVN_CODE_REV})" @GNICPPFLAGS@
EXTRA_DIST = $(kgnilnd-objs:%.o=%.c) gnilnd.h gnilnd_api_wrap.h
#ifndef _GNILND_GNILND_H_
#define _GNILND_GNILND_H_
+#ifdef HAVE_COMPAT_RDMA
+#include <linux/compat-2.6.h>
+#endif
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/mm.h>
* Author: Eric Barton <eric@bartonsoftware.com>
*/
+#ifdef HAVE_COMPAT_RDMA
+#include <linux/compat-2.6.h>
+#endif
+
#include <linux/version.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci-dma.h>
#endif
-#ifdef HAVE_COMPAT_RDMA
-#include <linux/compat-2.6.h>
-#endif
-
#include <net/sock.h>
#include <linux/in.h>
MODULES := ksocklnd
+# Need to make sure that an external OFED source pool overrides
+# # any in-kernel OFED sources
+NOSTDINC_FLAGS += @EXTRA_OFED_INCLUDE@
+
ksocklnd-objs := \
socklnd.o \
socklnd_cb.o \
#define DEBUG_PORTAL_ALLOC
#define DEBUG_SUBSYSTEM S_LND
+#ifdef HAVE_COMPAT_RDMA
+#include <linux/compat-2.6.h>
+#endif
#include <linux/crc32.h>
#include <linux/errno.h>
#include <linux/if.h>
default: all
+# Need to make sure that an external OFED source pool overrides
+# # any in-kernel OFED sources
+NOSTDINC_FLAGS += @EXTRA_OFED_INCLUDE@
+
@INCLUDE_RULES@
*/
#define DEBUG_SUBSYSTEM S_LNET
+
+#ifdef HAVE_COMPAT_RDMA
+#include <linux/compat-2.6.h>
+#endif
#include <linux/completion.h>
+#include <net/sock.h>
#include <lnet/lib-lnet.h>
static int accept_port = 988;
*/
#define DEBUG_SUBSYSTEM S_LNET
+#ifdef HAVE_COMPAT_RDMA
+#include <linux/compat-2.6.h>
+#endif
#include <linux/if.h>
#include <linux/in.h>
#include <linux/net.h>
return rc;
}
+#ifndef HAVE_SK_SLEEP
+static inline wait_queue_head_t *sk_sleep(struct sock *sk)
+{
+ return sk->sk_sleep;
+}
+#endif
+
int
lnet_sock_accept(struct socket **newsockp, struct socket *sock)
{