mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
0d62c4cfe2
commit
0fe6a7f284
21 changed files with 6 additions and 485 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue