summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-09-21 07:13:03 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-09-21 07:13:03 +0000
commiteb959627e6f753d225c33a60aeccd35c07eaac17 (patch)
tree0cb5f89b523b44bec35650710438ad2dafd484d6 /regress/sys
parent281b66eb31a8d2b3669cb87f78cd807183d9c42e (diff)
Test ART implementation by default.
RADIX code can be tested by doing "make RADIX=1"
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/net/rtable/Makefile.inc8
-rw-r--r--regress/sys/net/rtable/kern_compat.h7
2 files changed, 10 insertions, 5 deletions
diff --git a/regress/sys/net/rtable/Makefile.inc b/regress/sys/net/rtable/Makefile.inc
index 8e22e827dfa..fd4de2fae34 100644
--- a/regress/sys/net/rtable/Makefile.inc
+++ b/regress/sys/net/rtable/Makefile.inc
@@ -1,12 +1,12 @@
-# $OpenBSD: Makefile.inc,v 1.1 2015/11/04 09:45:52 mpi Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2016/09/21 07:13:02 mpi Exp $
TOPDIR= ${.CURDIR}/..
-.ifdef ART
+.ifdef RADIX
+SRCS+= radix.c
+.else
SRCS+= art.c
CFLAGS+= -DART
-.else
-SRCS+= radix.c
.endif
CPPFLAGS+= -I${TOPDIR} -Wall -DSMALL_KERNEL
diff --git a/regress/sys/net/rtable/kern_compat.h b/regress/sys/net/rtable/kern_compat.h
index fd2e7f4ead0..f30ab22ea28 100644
--- a/regress/sys/net/rtable/kern_compat.h
+++ b/regress/sys/net/rtable/kern_compat.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_compat.h,v 1.4 2016/06/07 07:57:59 mpi Exp $ */
+/* $OpenBSD: kern_compat.h,v 1.5 2016/09/21 07:13:02 mpi Exp $ */
#ifndef _KERN_COMPAT_H_
#define _KERN_COMPAT_H_
@@ -65,4 +65,9 @@ extern struct domain *domains[];
#define IPL_SOFTNET 0
+#define rw_init(rwl, name)
+#define rw_enter_write(rwl)
+#define rw_exit_write(rwl)
+#define rw_assert_wrlock(rwl)
+
#endif /* _KERN_COMPAT_H_ */