diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:29 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:46 -0500 |
commit | 0fe6a7f28455cd003b2668e77d5bd1e1cf15309e (patch) | |
tree | 450145c474ae8fed5ff03859e3ab2611afbc4dc6 /slirp/mbuf.c | |
parent | 0d62c4cfe21752df4c1d6e2c2398f15d5eaa794a (diff) | |
download | qemu-0fe6a7f28455cd003b2668e77d5bd1e1cf15309e.zip qemu-0fe6a7f28455cd003b2668e77d5bd1e1cf15309e.tar.gz qemu-0fe6a7f28455cd003b2668e77d5bd1e1cf15309e.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 'slirp/mbuf.c')
-rw-r--r-- | slirp/mbuf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/slirp/mbuf.c b/slirp/mbuf.c index 7963d34..888de86 100644 --- a/slirp/mbuf.c +++ b/slirp/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 @@ -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); |