freebsd-dev/sys/netinet/ipfw/test/Makefile

51 lines
1020 B
Makefile
Raw Normal View History

Bring in the most recent version of ipfw and dummynet, developed and tested over the past two months in the ipfw3-head branch. This also happens to be the same code available in the Linux and Windows ports of ipfw and dummynet. The major enhancement is a completely restructured version of dummynet, with support for different packet scheduling algorithms (loadable at runtime), faster queue/pipe lookup, and a much cleaner internal architecture and kernel/userland ABI which simplifies future extensions. In addition to the existing schedulers (FIFO and WF2Q+), we include a Deficit Round Robin (DRR or RR for brevity) scheduler, and a new, very fast version of WF2Q+ called QFQ. Some test code is also present (in sys/netinet/ipfw/test) that lets you build and test schedulers in userland. Also, we have added a compatibility layer that understands requests from the RELENG_7 and RELENG_8 versions of the /sbin/ipfw binaries, and replies correctly (at least, it does its best; sometimes you just cannot tell who sent the request and how to answer). The compatibility layer should make it possible to MFC this code in a relatively short time. Some minor glitches (e.g. handling of ipfw set enable/disable, and a workaround for a bug in RELENG_7's /sbin/ipfw) will be fixed with separate commits. CREDITS: This work has been partly supported by the ONELAB2 project, and mostly developed by Riccardo Panicucci and myself. The code for the qfq scheduler is mostly from Fabio Checconi, and Marta Carbone and Francesco Magno have helped with testing, debugging and some bug fixes.
2010-03-02 17:40:48 +00:00
#
# $FreeBSD$
#
# Makefile for building userland tests
# this is written in a form compatible with gmake
SCHED_SRCS = test_dn_sched.c
SCHED_SRCS += dn_sched_fifo.c
SCHED_SRCS += dn_sched_wf2q.c
SCHED_SRCS += dn_sched_qfq.c
SCHED_SRCS += dn_sched_rr.c
SCHED_SRCS += dn_heap.c
SCHED_SRCS += main.c
SCHED_OBJS=$(SCHED_SRCS:.c=.o)
HEAP_SRCS = dn_heap.c test_dn_heap.c
HEAP_OBJS=$(HEAP_SRCS:.c=.o)
VPATH= .:..
CFLAGS = -I.. -I. -Wall -Werror -O3 -DIPFW
TARGETS= test_sched # no test_heap by default
all: $(TARGETS)
test_heap : $(HEAP_OBJS)
$(CC) -o $@ $(HEAP_OBJS)
test_sched : $(SCHED_OBJS)
$(CC) -o $@ $(SCHED_OBJS)
$(SCHED_OBJS): dn_test.h
main.o: mylist.h
clean:
- rm *.o $(TARGETS) *.core
ALLSRCS = $(SCHED_SRCS) dn_test.h mylist.h \
dn_sched.h dn_heap.h ip_dn_private.h Makefile
TMPBASE = /tmp/testXYZ
TMPDIR = $(TMPBASE)/test
tgz:
-rm -rf $(TMPDIR)
mkdir -p $(TMPDIR)
-cp -p $(ALLSRCS) $(TMPDIR)
-(cd ..; cp -p $(ALLSRCS) $(TMPDIR))
ls -la $(TMPDIR)
(cd $(TMPBASE); tar cvzf /tmp/test.tgz test)