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/ip_output.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/ip_output.c')
-rw-r--r-- | slirp/ip_output.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/slirp/ip_output.c b/slirp/ip_output.c index 94bb0f2..3031f4d 100644 --- a/slirp/ip_output.c +++ b/slirp/ip_output.c @@ -72,7 +72,6 @@ ip_output(struct socket *so, struct mbuf *m0) ip->ip_off &= IP_DF; ip->ip_id = htons(ip_id++); ip->ip_hl = hlen >> 2; - STAT(ipstat.ips_localout++); /* * If small enough for interface, can just send directly. @@ -93,7 +92,6 @@ ip_output(struct socket *so, struct mbuf *m0) */ if (ip->ip_off & IP_DF) { error = -1; - STAT(ipstat.ips_cantfrag++); goto bad; } @@ -118,7 +116,6 @@ ip_output(struct socket *so, struct mbuf *m0) m = m_get(); if (m == NULL) { error = -1; - STAT(ipstat.ips_odropped++); goto sendorfree; } m->m_data += IF_MAXLINKHDR; @@ -145,7 +142,6 @@ ip_output(struct socket *so, struct mbuf *m0) mhip->ip_sum = cksum(m, mhlen); *mnext = m; mnext = &m->m_nextpkt; - STAT(ipstat.ips_ofragments++); } /* * Update first fragment by trimming what's been copied out @@ -166,9 +162,6 @@ sendorfree: else m_freem(m); } - - if (error == 0) - STAT(ipstat.ips_fragmented++); } done: |