From 0290a0c2f7684d3b3159f5cd92c0fb2e08aba725 Mon Sep 17 00:00:00 2001 From: luigi Date: Wed, 8 Feb 2012 11:43:29 +0000 Subject: - change the buffer size from a constant to a TUNABLE variable (hw.netmap.buf_size) so we can experiment with values different from 2048 which may give better cache performance. - rearrange the memory allocation code so it will be easier to replace it with a different implementation. The current code relies on a single large contiguous chunk of memory obtained through contigmalloc. The new implementation (not committed yet) uses multiple smaller chunks which are easier to fit in a fragmented address space. --- tools/tools/netmap/pkt-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/tools/netmap/pkt-gen.c b/tools/tools/netmap/pkt-gen.c index f2f4e40..5627e9e 100644 --- a/tools/tools/netmap/pkt-gen.c +++ b/tools/tools/netmap/pkt-gen.c @@ -124,7 +124,7 @@ struct pkt { struct ether_header eh; struct ip ip; struct udphdr udp; - uint8_t body[NETMAP_BUF_SIZE]; + uint8_t body[2048]; // XXX hardwired } __attribute__((__packed__)); /* -- cgit v1.1