From 0fe6a7f28455cd003b2668e77d5bd1e1cf15309e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:29 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- slirp/mbuf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'slirp/mbuf.c') diff --git a/slirp/mbuf.c b/slirp/mbuf.c index 7963d346a0..888de86e45 100644 --- a/slirp/mbuf.c +++ b/slirp/mbuf.c @@ -17,10 +17,9 @@ #include -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 @@ -57,8 +56,6 @@ 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); -- cgit v1.2.3