aboutsummaryrefslogtreecommitdiff
path: root/mbuf.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:29 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:46 -0500
commit284cade97e6d168b1b6a595bede1cdc9da236bb0 (patch)
treee9864cb94a318d16e4c43937d7a75abcc6df84f7 /mbuf.c
parentd89b93db4f609ff4a4728465fe9066b1027bf077 (diff)
downloadslirp-284cade97e6d168b1b6a595bede1cdc9da236bb0.zip
slirp-284cade97e6d168b1b6a595bede1cdc9da236bb0.tar.gz
slirp-284cade97e6d168b1b6a595bede1cdc9da236bb0.tar.bz2
slirp: Drop statistic code
As agreed on the mailing list, there is no interest in keeping the usually disabled slirp statistics in the tree. So this patch removes them. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'mbuf.c')
-rw-r--r--mbuf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mbuf.c b/mbuf.c
index da57514..6c5e4ec 100644
--- a/mbuf.c
+++ b/mbuf.c
@@ -17,10 +17,9 @@
#include <slirp.h>
-int mbuf_alloced = 0;
+static int mbuf_alloced;
struct mbuf m_freelist, m_usedlist;
#define MBUF_THRESH 30
-int mbuf_max = 0;
/*
* Find a nice value for msize
@@ -56,8 +55,6 @@ struct mbuf *m_get(void)
mbuf_alloced++;
if (mbuf_alloced > MBUF_THRESH)
flags = M_DOFREE;
- if (mbuf_alloced > mbuf_max)
- mbuf_max = mbuf_alloced;
} else {
m = m_freelist.m_next;
remque(m);